public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1003] RISC-V: Remove masking third operand of rotate instructions
@ 2023-05-19 22:20 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-05-19 22:20 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:259b4b7d349dd3fd560144bd4617f526458b45dc

commit r14-1003-g259b4b7d349dd3fd560144bd4617f526458b45dc
Author: Joern Rennecke <joern.rennecke@embecosm.com>
Date:   Fri May 19 16:18:42 2023 -0600

    RISC-V: Remove masking third operand of rotate instructions
    
    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.

Diff:
---
 gcc/config/riscv/constraints.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/riscv/constraints.md b/gcc/config/riscv/constraints.md
index c448e6b37e9..44525b2da49 100644
--- a/gcc/config/riscv/constraints.md
+++ b/gcc/config/riscv/constraints.md
@@ -65,13 +65,13 @@
   "@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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-19 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-19 22:20 [gcc r14-1003] RISC-V: Remove masking third operand of rotate instructions Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).