mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
e1a9d504a3
I accidentally missed this one since its use looked OK locally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210909 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|