]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Fix scalar VCOMSBF16 which only compares low word
authorLingling Kong <lingling.kong@intel.com>
Thu, 17 Oct 2024 02:42:44 +0000 (10:42 +0800)
committerLingling Kong <lingling.kong@intel.com>
Thu, 17 Oct 2024 02:43:28 +0000 (10:43 +0800)
gcc/ChangeLog:

* config/i386/sse.md(avx10_2_comsbf16_v8bf): Fixed scalar
operands.

gcc/config/i386/sse.md

index 59b826cba015d3a3fc002c944d7f62478f510b38..685bce3094abf91ef9a9a690f26bbc74119bc5fb 100644 (file)
 (define_insn "avx10_2_comsbf16_v8bf"
   [(set (reg:CCFP FLAGS_REG)
        (unspec:CCFP
-         [(match_operand:V8BF 0 "register_operand" "v")
-          (match_operand:V8BF 1 "nonimmediate_operand" "vm")]
+         [(vec_select:BF
+            (match_operand:V8BF 0 "register_operand" "v")
+            (parallel [(const_int 0)]))
+          (vec_select:BF
+            (match_operand:V8BF 1 "nonimmediate_operand" "vm")
+            (parallel [(const_int 0)]))]
         UNSPEC_VCOMSBF16))]
   "TARGET_AVX10_2_256"
   "vcomsbf16\t{%1, %0|%0, %1}"