summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/coalescer-remat.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/coalescer-remat.ll')
-rw-r--r--test/CodeGen/X86/coalescer-remat.ll12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/CodeGen/X86/coalescer-remat.ll b/test/CodeGen/X86/coalescer-remat.ll
index 4db520f..eb7b7a8 100644
--- a/test/CodeGen/X86/coalescer-remat.ll
+++ b/test/CodeGen/X86/coalescer-remat.ll
@@ -1,15 +1,13 @@
; RUN: llc < %s -mtriple=x86_64-apple-darwin | grep xor | count 3
-@val = internal global i64 0 ; <i64*> [#uses=1]
-@"\01LC" = internal constant [7 x i8] c"0x%lx\0A\00" ; <[7 x i8]*> [#uses=1]
+@val = internal global i64 0
+@"\01LC" = internal constant [7 x i8] c"0x%lx\0A\00"
define i32 @main() nounwind {
entry:
- %0 = tail call i64 @llvm.atomic.cmp.swap.i64.p0i64(i64* @val, i64 0, i64 1) ; <i64> [#uses=1]
- %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([7 x i8]* @"\01LC", i32 0, i64 0), i64 %0) nounwind ; <i32> [#uses=0]
- ret i32 0
+ %0 = cmpxchg i64* @val, i64 0, i64 1 monotonic
+ %1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([7 x i8]* @"\01LC", i32 0, i64 0), i64 %0) nounwind
+ ret i32 0
}
-declare i64 @llvm.atomic.cmp.swap.i64.p0i64(i64*, i64, i64) nounwind
-
declare i32 @printf(i8*, ...) nounwind
OpenPOWER on IntegriCloud