blob: 4fe62b07d48885cb0045482b819a3920ea1fe53a [file] [log] [blame]
Mehdi Amini43165d92016-03-19 21:28:28 +00001; RUN: llvm-as < %s | llvm-dis > %t.orig
2; RUN: llvm-as < %s | llvm-c-test --echo > %t.echo
3; RUN: diff -w %t.orig %t.echo
4
5define i32 @main() {
6 %1 = alloca i32
7 %2 = cmpxchg i32* %1, i32 2, i32 3 seq_cst acquire
8 %3 = extractvalue { i32, i1 } %2, 0
9 ret i32 %3
10}