1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -o /dev/null "-mtriple=thumbv7-apple-ios" -debug-only=post-RA-sched 2> %t 2*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck %s < %t 3*9880d681SAndroid Build Coastguard Worker; REQUIRES: asserts 4*9880d681SAndroid Build Coastguard Worker; Make sure that mayalias store-load dependencies have one cycle 5*9880d681SAndroid Build Coastguard Worker; latency regardless of whether they are barriers or not. 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker; CHECK: ** List Scheduling 8*9880d681SAndroid Build Coastguard Worker; CHECK: SU(2){{.*}}STR{{.*}}Volatile 9*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ch SU 10*9880d681SAndroid Build Coastguard Worker; CHECK: ch SU(3): Latency=1 11*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ch SU 12*9880d681SAndroid Build Coastguard Worker; CHECK: SU(3){{.*}}LDR{{.*}}Volatile 13*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ch SU 14*9880d681SAndroid Build Coastguard Worker; CHECK: ch SU(2): Latency=1 15*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ch SU 16*9880d681SAndroid Build Coastguard Worker; CHECK: Successors: 17*9880d681SAndroid Build Coastguard Worker; CHECK: ** List Scheduling 18*9880d681SAndroid Build Coastguard Worker; CHECK: SU(2){{.*}}STR{{.*}} 19*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ch SU 20*9880d681SAndroid Build Coastguard Worker; CHECK: ch SU(3): Latency=1 21*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ch SU 22*9880d681SAndroid Build Coastguard Worker; CHECK: SU(3){{.*}}LDR{{.*}} 23*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ch SU 24*9880d681SAndroid Build Coastguard Worker; CHECK: ch SU(2): Latency=1 25*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ch SU 26*9880d681SAndroid Build Coastguard Worker; CHECK: Successors: 27*9880d681SAndroid Build Coastguard Workerdefine i32 @f1(i32* nocapture %p1, i32* nocapture %p2) nounwind { 28*9880d681SAndroid Build Coastguard Workerentry: 29*9880d681SAndroid Build Coastguard Worker store volatile i32 65540, i32* %p1, align 4 30*9880d681SAndroid Build Coastguard Worker %0 = load volatile i32, i32* %p2, align 4 31*9880d681SAndroid Build Coastguard Worker ret i32 %0 32*9880d681SAndroid Build Coastguard Worker} 33*9880d681SAndroid Build Coastguard Worker 34*9880d681SAndroid Build Coastguard Workerdefine i32 @f2(i32* nocapture %p1, i32* nocapture %p2) nounwind { 35*9880d681SAndroid Build Coastguard Workerentry: 36*9880d681SAndroid Build Coastguard Worker store i32 65540, i32* %p1, align 4 37*9880d681SAndroid Build Coastguard Worker %0 = load i32, i32* %p2, align 4 38*9880d681SAndroid Build Coastguard Worker ret i32 %0 39*9880d681SAndroid Build Coastguard Worker} 40