Tim Northover | 6bf04e4 | 2014-06-13 14:54:09 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -sccp -S | FileCheck %s |
2 | |||||
3 | define i1 @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) { | ||||
4 | ; CHECK-LABEL: @test_cmpxchg | ||||
5 | ; CHECK: cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst | ||||
6 | %val = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst | ||||
7 | %res = extractvalue { i32, i1 } %val, 1 | ||||
8 | ret i1 %res | ||||
9 | } |