]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Remove masking third operand of rotate instructions
authorJoern Rennecke <joern.rennecke@embecosm.com>
Fri, 19 May 2023 22:18:42 +0000 (16:18 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Fri, 19 May 2023 22:19:51 +0000 (16:19 -0600)
Sorry, I forgot the ChangeLog entry for my patch and missed the [v2]
part of the subject.

2023-05-18  Joern Rennecke  <joern.rennecke@embecosm.com>

gcc/ChangeLog:
* config/riscv/constraints.md (DsS, DsD): Restore agreement
with shiftm1 mode attribute.

gcc/config/riscv/constraints.md

index c448e6b37e93093b09e7c4e9a2108292e09de324..44525b2da49124f4b5dfafa97785681116515344 100644 (file)
   "@internal
    31 immediate"
   (and (match_code "const_int")
-       (match_test "ival == 31")))
+       (match_test "(ival & 31) == 31")))
 
 (define_constraint "DsD"
   "@internal
    63 immediate"
   (and (match_code "const_int")
-       (match_test "ival == 63")))
+       (match_test "(ival & 63) == 63")))
 
 (define_constraint "DbS"
   "@internal"