diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-04-23 23:05:08 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-04-23 23:05:08 +0000 |
commit | ba03f542ac608f0737bda1bfde6b7a2f79bb943c (patch) | |
tree | 1f100b270afe1cff38bccc7866cc5ff2dcac3dff /test/CodeGen/PowerPC/atomics.ll | |
parent | 6d49b023a4a7a018c631d635ec34b40872af417d (diff) |
[PowerPC] Use sync inst alias when printing
So long as the choice between printing msync and sync is not ambiguous, we can
print 'sync 0' and just 'sync'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/atomics.ll')
-rw-r--r-- | test/CodeGen/PowerPC/atomics.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CodeGen/PowerPC/atomics.ll b/test/CodeGen/PowerPC/atomics.ll index 18038d42f33..2e1eff0f634 100644 --- a/test/CodeGen/PowerPC/atomics.ll +++ b/test/CodeGen/PowerPC/atomics.ll @@ -32,7 +32,7 @@ define i32 @load_i32_acquire(i32* %mem) { } define i64 @load_i64_seq_cst(i64* %mem) { ; CHECK-LABEL: load_i64_seq_cst -; CHECK: sync 0 +; CHECK: sync ; PPC32: __sync_ ; PPC64-NOT: __sync_ ; PPC64: ld @@ -65,7 +65,7 @@ define void @store_i32_release(i32* %mem) { } define void @store_i64_seq_cst(i64* %mem) { ; CHECK-LABEL: store_i64_seq_cst -; CHECK: sync 0 +; CHECK: sync ; PPC32: __sync_ ; PPC64-NOT: __sync_ ; PPC64: std @@ -76,7 +76,7 @@ define void @store_i64_seq_cst(i64* %mem) { ; Atomic CmpXchg define i8 @cas_strong_i8_sc_sc(i8* %mem) { ; CHECK-LABEL: cas_strong_i8_sc_sc -; CHECK: sync 0 +; CHECK: sync %val = cmpxchg i8* %mem, i8 0, i8 1 seq_cst seq_cst ; CHECK: lwsync %loaded = extractvalue { i8, i1} %val, 0 @@ -116,7 +116,7 @@ define i8 @add_i8_monotonic(i8* %mem, i8 %operand) { } define i16 @xor_i16_seq_cst(i16* %mem, i16 %operand) { ; CHECK-LABEL: xor_i16_seq_cst -; CHECK: sync 0 +; CHECK: sync %val = atomicrmw xor i16* %mem, i16 %operand seq_cst ; CHECK: lwsync ret i16 %val |