aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/pr28489.ll
blob: e7e1331fbd1fff4b1230d595abbbec3faa003dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; ; 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
}