[llvm] [X86] Add baseline test for X86 conditional load/store optimization bug (PR #163354)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 14 14:46:10 PDT 2025
================
@@ -230,6 +230,24 @@ entry:
ret void
}
+define void @and_cond(i32 %a, i1 %b) {
+; CHECK-LABEL: and_cond:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: testl %edi, %edi
+; CHECK-NEXT: setg %al
+; CHECK-NEXT: xorl %ecx, %ecx
+; CHECK-NEXT: testb %al, %sil
+; CHECK-NEXT: cfcmovel %ecx, 0
+; CHECK-NEXT: retq
+entry:
+ %0 = icmp sgt i32 %a, 0
+ %1 = xor i1 %b, true
+ %3 = and i1 %1, %0
+ %4 = insertelement <1 x i1> zeroinitializer, i1 %3, i64 0
----------------
azwolski wrote:
Thanks, I’ve adjusted the naming as suggested
https://github.com/llvm/llvm-project/pull/163354
More information about the llvm-commits
mailing list