public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Uros Bizjak <uros@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-1395] i386: Use "r" constraint in *andn<mode>3_doubleword_bmi
Date: Fri,  1 Jul 2022 15:26:13 +0000 (GMT)	[thread overview]
Message-ID: <20220701152613.125B93858D28@sourceware.org> (raw)

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"


                 reply	other threads:[~2022-07-01 15:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220701152613.125B93858D28@sourceware.org \
    --to=uros@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).