xref: /llvm-project/llvm/test/CodeGen/X86/pr28489.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; ; RUN: llc < %s -mtriple=i686-pc-linux -O0 | FileCheck %s
2declare void @g(i32, i1)
3
4;CHECK-LABEL: f:
5;CHECK: cmpxchg8b
6;CHECK: sete [[REG:%[abcd]l]]
7;CHECK: movzbl [[REG]]
8define void @f(ptr %arg, i64 %arg1) {
9entry:
10  %tmp5 = cmpxchg ptr %arg, i64 %arg1, i64 %arg1 seq_cst seq_cst
11  %tmp7 = extractvalue { i64, i1 } %tmp5, 1
12  %tmp9 = zext i1 %tmp7 to i32
13  call void @g(i32 %tmp9, i1 %tmp7)
14  ret void
15}
16