public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Roger Sayle <sayle@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-1907] i386: Standardize shift amount constants as QImode in i386.md. Date: Sun, 18 Jun 2023 16:37:25 +0000 (GMT) [thread overview] Message-ID: <20230618163725.A71783858D32@sourceware.org> (raw) https://gcc.gnu.org/g:55686e6601b3633a515afad1358d71c7b2d565e2 commit r14-1907-g55686e6601b3633a515afad1358d71c7b2d565e2 Author: Roger Sayle <roger@nextmovesoftware.com> Date: Sun Jun 18 17:36:26 2023 +0100 i386: Standardize shift amount constants as QImode in i386.md. This clean-up improves consistency within i386.md by using QImode for the constant shift count in patterns that specify a mode. 2023-06-18 Roger Sayle <roger@nextmovesoftware.com> gcc/ChangeLog * config/i386/i386.md (*concat<mode><dwi>3_1): Use QImode for the immediate constant shift count. (*concat<mode><dwi>3_2): Likewise. (*concat<mode><dwi>3_3): Likewise. (*concat<mode><dwi>3_4): Likewise. (*concat<mode><dwi>3_5): Likewise. (*concat<mode><dwi>3_6): Likewise. Diff: --- gcc/config/i386/i386.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 93794c17861..b8d2e3af02a 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -12211,7 +12211,7 @@ [(set (match_operand:<DWI> 0 "nonimmediate_operand" "=ro,r") (any_or_plus:<DWI> (ashift:<DWI> (match_operand:<DWI> 1 "register_operand" "r,r") - (match_operand:<DWI> 2 "const_int_operand")) + (match_operand:QI 2 "const_int_operand")) (zero_extend:<DWI> (match_operand:DWIH 3 "nonimmediate_operand" "r,m"))))] "INTVAL (operands[2]) == <MODE_SIZE> * BITS_PER_UNIT" @@ -12230,7 +12230,7 @@ (zero_extend:<DWI> (match_operand:DWIH 1 "nonimmediate_operand" "r,m")) (ashift:<DWI> (match_operand:<DWI> 2 "register_operand" "r,r") - (match_operand:<DWI> 3 "const_int_operand"))))] + (match_operand:QI 3 "const_int_operand"))))] "INTVAL (operands[3]) == <MODE_SIZE> * BITS_PER_UNIT" "#" "&& reload_completed" @@ -12247,7 +12247,7 @@ (ashift:<DWI> (zero_extend:<DWI> (match_operand:DWIH 1 "nonimmediate_operand" "r,m,r,m")) - (match_operand:<DWI> 2 "const_int_operand")) + (match_operand:QI 2 "const_int_operand")) (zero_extend:<DWI> (match_operand:DWIH 3 "nonimmediate_operand" "r,r,m,m"))))] "INTVAL (operands[2]) == <MODE_SIZE> * BITS_PER_UNIT" @@ -12267,7 +12267,7 @@ (ashift:<DWI> (zero_extend:<DWI> (match_operand:DWIH 2 "nonimmediate_operand" "r,r,m,m")) - (match_operand:<DWI> 3 "const_int_operand"))))] + (match_operand:QI 3 "const_int_operand"))))] "INTVAL (operands[3]) == <MODE_SIZE> * BITS_PER_UNIT" "#" "&& reload_completed" @@ -12281,7 +12281,7 @@ [(set (match_operand:DWI 0 "nonimmediate_operand" "=r,o,o") (any_or_plus:DWI (ashift:DWI (match_operand:DWI 1 "register_operand" "r,r,r") - (match_operand:DWI 2 "const_int_operand")) + (match_operand:QI 2 "const_int_operand")) (match_operand:DWI 3 "const_scalar_int_operand" "n,n,Wd")))] "INTVAL (operands[2]) == <MODE_SIZE> * BITS_PER_UNIT / 2 && (<MODE>mode == DImode @@ -12313,7 +12313,7 @@ (ashift:<DWI> (zero_extend:<DWI> (match_operand:DWIH 1 "nonimmediate_operand" "r,r,r,m")) - (match_operand:<DWI> 2 "const_int_operand")) + (match_operand:QI 2 "const_int_operand")) (match_operand:<DWI> 3 "const_scalar_int_operand" "n,n,Wd,n")))] "INTVAL (operands[2]) == <MODE_SIZE> * BITS_PER_UNIT && (<DWI>mode == DImode
reply other threads:[~2023-06-18 16:37 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=20230618163725.A71783858D32@sourceware.org \ --to=sayle@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: linkBe 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).