public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1395] i386: Use "r" constraint in *andn<mode>3_doubleword_bmi
@ 2022-07-01 15:26 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2022-07-01 15:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f843bea4ca5613cb713f8b9313daa3938f254a05

commit r13-1395-gf843bea4ca5613cb713f8b9313daa3938f254a05
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Fri Jul 1 17:25:03 2022 +0200

    i386: Use "r" constraint in *andn<mode>3_doubleword_bmi
    
    ANDN is non-destructive, so use "r" instead of "0" for its operand 1 constraint.
    
    2022-07-01  Uroš Bizjak  <ubizjak@gmail.com>
    
    gcc/ChangeLog:
    
            * config/i386/i386.md (*andn<mode>3_doubleword_bmi):
            Use "r" constraint for operand 1.

Diff:
---
 gcc/config/i386/i386.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 352a21c585c..20c3b9a4122 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -10407,7 +10407,7 @@
 (define_insn_and_split "*andn<mode>3_doubleword_bmi"
   [(set (match_operand:<DWI> 0 "register_operand" "=r")
 	(and:<DWI>
-	  (not:<DWI> (match_operand:<DWI> 1 "register_operand" "0"))
+	  (not:<DWI> (match_operand:<DWI> 1 "register_operand" "r"))
 	  (match_operand:<DWI> 2 "nonimmediate_operand" "ro")))
    (clobber (reg:CC FLAGS_REG))]
   "TARGET_BMI"


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

only message in thread, other threads:[~2022-07-01 15:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01 15:26 [gcc r13-1395] i386: Use "r" constraint in *andn<mode>3_doubleword_bmi Uros Bizjak

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).