[llvm] [X86][FP16] Fix crash issue when AVX512VL is not set (PR #119309)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 01:52:29 PST 2024
================
@@ -413,9 +413,12 @@ define half @test_v2f16(<2 x half> %a0) nounwind {
; AVX512F: # %bb.0:
; AVX512F-NEXT: # kill: def $xmm0 killed $xmm0 def $zmm0
; AVX512F-NEXT: vpsrld $16, %xmm0, %xmm1
-; AVX512F-NEXT: vcvtph2ps %xmm0, %ymm2
-; AVX512F-NEXT: vcvtph2ps %xmm1, %ymm3
-; AVX512F-NEXT: vcmpltps %zmm2, %zmm3, %k1
+; AVX512F-NEXT: vcvtph2ps %xmm0, %xmm2
+; AVX512F-NEXT: vcvtph2ps %xmm1, %xmm3
+; AVX512F-NEXT: vucomiss %xmm3, %xmm2
+; AVX512F-NEXT: seta %al
+; AVX512F-NEXT: negb %al
+; AVX512F-NEXT: kmovd %eax, %k1
----------------
RKSimon wrote:
Annoying but not that important
https://github.com/llvm/llvm-project/pull/119309
More information about the llvm-commits
mailing list