[llvm] [DAG] SimplifyDemandedBits - ICMP_SLT(X, 0) - only sign mask of X is required (PR #164946)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 2 18:42:23 PST 2025
================
@@ -3553,7 +3553,8 @@ define i32 @bittest_31_slt0_i32(i32 %x, i1 %y) {
;
; RV64-LABEL: bittest_31_slt0_i32:
; RV64: # %bb.0:
-; RV64-NEXT: srliw a0, a0, 31
+; RV64-NEXT: slli a0, a0, 32
----------------
topperc wrote:
This is a regression. I'll take a closer look when I get a chance.
https://github.com/llvm/llvm-project/pull/164946
More information about the llvm-commits
mailing list