https://gcc.gnu.org/g:2d8c3a26dca8912147e34e3a496297138c9261d8

commit r15-4401-g2d8c3a26dca8912147e34e3a496297138c9261d8
Author: Lingling Kong <lingling.k...@intel.com>
Date:   Thu Oct 17 10:42:44 2024 +0800

    i386: Fix scalar VCOMSBF16 which only compares low word
    
    gcc/ChangeLog:
    
            * config/i386/sse.md(avx10_2_comsbf16_v8bf): Fixed scalar
            operands.

Diff:
---
 gcc/config/i386/sse.md | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index 59b826cba015..685bce3094ab 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -32366,8 +32366,12 @@
 (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}"

Reply via email to