Home | History | Annotate | Download | only in X86
      1 ; ; RUN: llc < %s -mtriple=i686-pc-linux -O0 | FileCheck %s
      2 declare void @g(i32, i1)
      3 
      4 ;CHECK-LABEL: f:
      5 ;CHECK: cmpxchg8b
      6 ;CHECK: sete %cl
      7 ;CHECK: movzbl %cl
      8 define void @f(i64* %arg, i64 %arg1) {
      9 entry:
     10   %tmp5 = cmpxchg i64* %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