mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-03 17:02:03 +00:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
10 lines
326 B
LLVM
10 lines
326 B
LLVM
; RUN: opt < %s -sccp -S | FileCheck %s
|
|
|
|
define i1 @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
|
|
; CHECK-LABEL: @test_cmpxchg
|
|
; CHECK: cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
|
|
%val = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
|
|
%res = extractvalue { i32, i1 } %val, 1
|
|
ret i1 %res
|
|
}
|