]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Use "r" constraint in *andn<mode>3_doubleword_bmi
authorUros Bizjak <ubizjak@gmail.com>
Fri, 1 Jul 2022 15:25:03 +0000 (17:25 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Fri, 1 Jul 2022 15:26:01 +0000 (17:26 +0200)
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.

gcc/config/i386/i386.md

index 352a21c585cbc4b474caac082957a477a16e9d7c..20c3b9a412250a0b82277445f9278cca86c6234d 100644 (file)
 (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"