https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93673

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Something like this:

diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index 902ea318999..b3b6552e13b 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -1650,7 +1650,7 @@ (define_insn "k<code><mode>"
   [(set (match_operand:SWI1248_AVX512BWDQ 0 "register_operand" "=k")
   (any_lshift:SWI1248_AVX512BWDQ
     (match_operand:SWI1248_AVX512BWDQ 1 "register_operand" "k")
-    (match_operand:QI 2 "immediate_operand" "n")))
+    (match_operand:QI 2 "const_0_to_255_operand")))
    (unspec [(const_int 0)] UNSPEC_MASKOP)]
   "TARGET_AVX512F"
   "k<mshift><mskmodesuffix>\t{%2, %1, %0|%0, %1, %2}"

Reply via email to