[llvm] [LLVM][CodeGen] Flooring BW to 1 in isSaturatingMinMax (PR #160637)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 24 23:01:15 PDT 2025


================
@@ -3829,6 +3829,45 @@ entry:
   ret i64 %conv6
 }
 
+define i32 @ustest_f16const_i32() {
+; CHECK-LABEL: ustest_f16const_i32:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    cvttss2si {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %ecx
+; CHECK-NEXT:    movl %ecx, %eax
+; CHECK-NEXT:    sarl $31, %eax
+; CHECK-NEXT:    xorl %edx, %edx
+; CHECK-NEXT:    andl %ecx, %eax
+; CHECK-NEXT:    cmovlel %edx, %eax
+; CHECK-NEXT:    retq
----------------
lenary wrote:

Something is wrong here - there's no lines with `CHECK` as a check-prefix, from what I can see.

(If update_llc_test_checks.py had thought CHECK was a prefix, then there would be a newline between the last CHECK-NEXT and the RV32-LABEL)

https://github.com/llvm/llvm-project/pull/160637


More information about the llvm-commits mailing list