You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
326 B
10 lines
326 B
; 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
|
|
}
|