[llvm] 05953cf - [X86] Regenerate atomic-eflags-reuse.ll
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 22 06:07:26 PDT 2021
Author: Simon Pilgrim
Date: 2021-04-22T14:07:12+01:00
New Revision: 05953cf6158371c9d38e0f333afe246d1be30ea0
URL: https://github.com/llvm/llvm-project/commit/05953cf6158371c9d38e0f333afe246d1be30ea0
DIFF: https://github.com/llvm/llvm-project/commit/05953cf6158371c9d38e0f333afe246d1be30ea0.diff
LOG: [X86] Regenerate atomic-eflags-reuse.ll
Added:
Modified:
llvm/test/CodeGen/X86/atomic-eflags-reuse.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/atomic-eflags-reuse.ll b/llvm/test/CodeGen/X86/atomic-eflags-reuse.ll
index b2a0d2759569..b5a27892ad2f 100644
--- a/llvm/test/CodeGen/X86/atomic-eflags-reuse.ll
+++ b/llvm/test/CodeGen/X86/atomic-eflags-reuse.ll
@@ -222,13 +222,22 @@ entry:
ret i8 %tmp2
}
-define i8 @test_add_1_cmov_cmov(i64* %p, i8* %q) #0 {
; TODO: It's possible to use "lock inc" here, but both cmovs need to be updated.
+define i8 @test_add_1_cmov_cmov(i64* %p, i8* %q) #0 {
; CHECK-LABEL: test_add_1_cmov_cmov:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: movl $1, %eax
; CHECK-NEXT: lock xaddq %rax, (%rdi)
-; CHECK-NEXT: testq %rax, %rax
+; CHECK-NEXT: testq %rax, %rax
+; CHECK-NEXT: movl $12, %eax
+; CHECK-NEXT: movl $34, %ecx
+; CHECK-NEXT: cmovsl %eax, %ecx
+; CHECK-NEXT: movb %cl, (%rsi)
+; CHECK-NEXT: movl $56, %ecx
+; CHECK-NEXT: movl $78, %eax
+; CHECK-NEXT: cmovsl %ecx, %eax
+; CHECK-NEXT: # kill: def $al killed $al killed $eax
+; CHECK-NEXT: retq
entry:
%add = atomicrmw add i64* %p, i64 1 seq_cst
%cmp = icmp slt i64 %add, 0
More information about the llvm-commits
mailing list