Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86-64 | FileCheck %s
      2 
      3 ; rdar://9692967
      4 
      5 define void @t1(i64* %p, i32 %b) nounwind {
      6 entry:
      7   %p.addr = alloca i64*, align 8
      8   store i64* %p, i64** %p.addr, align 8
      9   %tmp = load i64** %p.addr, align 8
     10 ; CHECK: t1:
     11 ; CHECK: movl    $2147483648, %eax
     12 ; CHECK: lock
     13 ; CHECK-NEXT: orq %r{{.*}}, (%r{{.*}})
     14   %0 = atomicrmw or i64* %tmp, i64 2147483648 seq_cst
     15   ret void
     16 }
     17 
     18 define void @t2(i64* %p, i32 %b) nounwind {
     19 entry:
     20   %p.addr = alloca i64*, align 8
     21   store i64* %p, i64** %p.addr, align 8
     22   %tmp = load i64** %p.addr, align 8
     23 ; CHECK: t2:
     24 ; CHECK: lock
     25 ; CHECK-NEXT: orq $2147483644, (%r{{.*}})
     26   %0 = atomicrmw or i64* %tmp, i64 2147483644 seq_cst
     27   ret void
     28 }
     29