From: Roger Sayle Date: Sun, 18 Jun 2023 16:36:26 +0000 (+0100) Subject: i386: Standardize shift amount constants as QImode in i386.md. X-Git-Tag: basepoints/gcc-15~8232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55686e6601b3633a515afad1358d71c7b2d565e2;p=thirdparty%2Fgcc.git 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 gcc/ChangeLog * config/i386/i386.md (*concat3_1): Use QImode for the immediate constant shift count. (*concat3_2): Likewise. (*concat3_3): Likewise. (*concat3_4): Likewise. (*concat3_5): Likewise. (*concat3_6): Likewise. --- diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 93794c178613..b8d2e3af02ac 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -12211,7 +12211,7 @@ [(set (match_operand: 0 "nonimmediate_operand" "=ro,r") (any_or_plus: (ashift: (match_operand: 1 "register_operand" "r,r") - (match_operand: 2 "const_int_operand")) + (match_operand:QI 2 "const_int_operand")) (zero_extend: (match_operand:DWIH 3 "nonimmediate_operand" "r,m"))))] "INTVAL (operands[2]) == * BITS_PER_UNIT" @@ -12230,7 +12230,7 @@ (zero_extend: (match_operand:DWIH 1 "nonimmediate_operand" "r,m")) (ashift: (match_operand: 2 "register_operand" "r,r") - (match_operand: 3 "const_int_operand"))))] + (match_operand:QI 3 "const_int_operand"))))] "INTVAL (operands[3]) == * BITS_PER_UNIT" "#" "&& reload_completed" @@ -12247,7 +12247,7 @@ (ashift: (zero_extend: (match_operand:DWIH 1 "nonimmediate_operand" "r,m,r,m")) - (match_operand: 2 "const_int_operand")) + (match_operand:QI 2 "const_int_operand")) (zero_extend: (match_operand:DWIH 3 "nonimmediate_operand" "r,r,m,m"))))] "INTVAL (operands[2]) == * BITS_PER_UNIT" @@ -12267,7 +12267,7 @@ (ashift: (zero_extend: (match_operand:DWIH 2 "nonimmediate_operand" "r,r,m,m")) - (match_operand: 3 "const_int_operand"))))] + (match_operand:QI 3 "const_int_operand"))))] "INTVAL (operands[3]) == * 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]) == * BITS_PER_UNIT / 2 && (mode == DImode @@ -12313,7 +12313,7 @@ (ashift: (zero_extend: (match_operand:DWIH 1 "nonimmediate_operand" "r,r,r,m")) - (match_operand: 2 "const_int_operand")) + (match_operand:QI 2 "const_int_operand")) (match_operand: 3 "const_scalar_int_operand" "n,n,Wd,n")))] "INTVAL (operands[2]) == * BITS_PER_UNIT && (mode == DImode