17 lines · plain
1; RUN: llvm-dis < %s.bc | FileCheck %s2; RUN: verify-uselistorder < %s.bc3 4; cmpxchg-upgrade.ll.bc was produced by running a version of llvm-as from just5; before the IR change on this file.6 7define i32 @test(i32* %addr, i32 %old, i32 %new) {8; CHECK: [[TMP:%.*]] = cmpxchg ptr %addr, i32 %old, i32 %new seq_cst monotonic9; CHECK: %val = extractvalue { i32, i1 } [[TMP]], 010 %val = cmpxchg i32* %addr, i32 %old, i32 %new seq_cst monotonic11 ret i32 %val12}13 14define i32 @test(i32* %addr, i32 %old, i32 %new) {15 ret i1 %val16}17