2
0

weak-cmpxchg-upgrade.ll 528 B

12345678910111213141516
  1. ; RUN: llvm-dis < %s.bc | FileCheck %s
  2. ; RUN: verify-uselistorder < %s.bc
  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. define i32 @test(i32* %addr, i32 %old, i32 %new) {
  6. ; CHECK: [[TMP:%.*]] = cmpxchg i32* %addr, i32 %old, i32 %new seq_cst monotonic
  7. ; CHECK: %val = extractvalue { i32, i1 } [[TMP]], 0
  8. %val = cmpxchg i32* %addr, i32 %old, i32 %new seq_cst monotonic
  9. ret i32 %val
  10. }
  11. define i32 @test(i32* %addr, i32 %old, i32 %new) {
  12. ret i1 %val
  13. }