x86: Use x constraint on KL patterns
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 25 Mar 2022 17:48:16 +0000 (10:48 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 26 Mar 2022 14:15:39 +0000 (07:15 -0700)
Since KL instructions have no AVX512 version, replace the "v" register
constraint with the "x" register constraint.

PR target/105058
* config/i386/sse.md (loadiwkey): Replace "v" with "x".
(aes<aesklvariant>u8): Likewise.

gcc/config/i386/sse.md

index 29802d0..33bd2c4 100644 (file)
 
 ;; KEYLOCKER
 (define_insn "loadiwkey"
-  [(unspec_volatile:V2DI [(match_operand:V2DI 0 "register_operand" "v")
-                         (match_operand:V2DI 1 "register_operand" "v")
+  [(unspec_volatile:V2DI [(match_operand:V2DI 0 "register_operand" "x")
+                         (match_operand:V2DI 1 "register_operand" "x")
                          (match_operand:V2DI 2 "register_operand" "Yz")
                          (match_operand:SI   3 "register_operand" "a")]
                         UNSPECV_LOADIWKEY)
    (UNSPECV_AESENC256KLU8 "enc256kl")])
 
 (define_insn "aes<aesklvariant>u8"
-  [(set (match_operand:V2DI 0 "register_operand" "=v")
+  [(set (match_operand:V2DI 0 "register_operand" "=x")
        (unspec_volatile:V2DI [(match_operand:V2DI 1 "register_operand" "0")
                               (match_operand:BLK   2 "memory_operand" "m")]
                              AESDECENCKL))