1 ; RUN: llvm-dis < %s.bc | FileCheck %s 2 3 ; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just 4 ; before the IR change on this file. 5 6 define i32 @test(i32* %addr, i32 %old, i32 %new) { 7 ; CHECK: [[TMP:%.*]] = cmpxchg i32* %addr, i32 %old, i32 %new seq_cst monotonic 8 ; CHECK: %val = extractvalue { i32, i1 } [[TMP]], 0 9 %val = cmpxchg i32* %addr, i32 %old, i32 %new seq_cst monotonic 10 ret i32 %val 11 } 12 13 define i32 @test(i32* %addr, i32 %old, i32 %new) { 14 ret i1 %val 15 } 16