1 ; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s
4 ; PHI defs in the atomic loop should be used by the add / adc
5 ; instructions. They should not be dead.
7 define void @t(i64* nocapture %p) nounwind ssp {
11 ; CHECK: movl (%ebp), %eax
12 ; CHECK: movl 4(%ebp), %edx
21 tail call void @llvm.memory.barrier(i1 true, i1 true, i1 true, i1 true, i1 true)
22 %0 = tail call i64 @llvm.atomic.load.add.i64.p0i64(i64* %p, i64 1) ; <i64> [#uses=0]
23 tail call void @llvm.memory.barrier(i1 true, i1 true, i1 true, i1 true, i1 true)
27 declare void @llvm.memory.barrier(i1, i1, i1, i1, i1) nounwind
29 declare i64 @llvm.atomic.load.add.i64.p0i64(i64* nocapture, i64) nounwind