Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
16 lines
408 B
LLVM
16 lines
408 B
LLVM
; ; RUN: llc < %s -mtriple=i686-pc-linux -O0 | FileCheck %s
|
|
declare void @g(i32, i1)
|
|
|
|
;CHECK-LABEL: f:
|
|
;CHECK: cmpxchg8b
|
|
;CHECK: sete [[REG:%[abcd]l]]
|
|
;CHECK: movzbl [[REG]]
|
|
define void @f(ptr %arg, i64 %arg1) {
|
|
entry:
|
|
%tmp5 = cmpxchg ptr %arg, i64 %arg1, i64 %arg1 seq_cst seq_cst
|
|
%tmp7 = extractvalue { i64, i1 } %tmp5, 1
|
|
%tmp9 = zext i1 %tmp7 to i32
|
|
call void @g(i32 %tmp9, i1 %tmp7)
|
|
ret void
|
|
}
|