diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2025-10-01 15:12:49 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2025-10-01 15:14:00 -0600 |
commit | c866a8a88242833f64fe25e04e4ad4c097daec34 (patch) | |
tree | 00d3c969a9a39428cddb9f78ba0731c9a04d84b7 /libjava/classpath/lib/javax | |
parent | 88e9cc95abd8fe3a7f506f1791b08c32d36cd760 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
This is a minor bug in the CRC code for RISC-V.
Essentially in the expander we have an operand without a predicate. So it
matches anything. But that operand really has to be a CONST_INT. So this
patch adds the missing predicate. I noticed we had constraints on our
define_expand. It doesn't hurt anything, but they're never used and can easily
get out of date, so this removes the unnecessary constraints.
Tested on riscv32-elf and riscv64-elf. Bootstrap & regression test on the
Pioneer is in flight and should finish in the next few hours.
Pushing to the trunk once CI confirms it's OK.
PR target/122106
gcc/
* config/riscv/bitmanip.md (crc expanders): Add predicate for
polynomial argument. Drop unnecessary constraints.
gcc/testsuite/
* gcc.target/riscv/pr122106.c: New test.
Diffstat (limited to 'libjava/classpath/lib/javax')
0 files changed, 0 insertions, 0 deletions