source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Bitcode/cmpxchg-upgrade.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 771 bytes
Line 
1; RUN: llvm-dis < %s.bc | FileCheck %s
2; RUN: verify-uselistorder < %s.bc
3
4; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just
5; before the IR change on this file.
6
7define void @test(i32* %addr) {
8   cmpxchg i32* %addr, i32 42, i32 0 monotonic
9; CHECK: cmpxchg i32* %addr, i32 42, i32 0 monotonic monotonic
10
11   cmpxchg i32* %addr, i32 42, i32 0 acquire
12; CHECK: cmpxchg i32* %addr, i32 42, i32 0 acquire acquire
13
14   cmpxchg i32* %addr, i32 42, i32 0 release
15; CHECK: cmpxchg i32* %addr, i32 42, i32 0 release monotonic
16
17   cmpxchg i32* %addr, i32 42, i32 0 acq_rel
18; CHECK: cmpxchg i32* %addr, i32 42, i32 0 acq_rel acquire
19
20   cmpxchg i32* %addr, i32 42, i32 0 seq_cst
21; CHECK: cmpxchg i32* %addr, i32 42, i32 0 seq_cst seq_cst
22
23   ret void
24}
Note: See TracBrowser for help on using the repository browser.