1 ; RUN: llc < %s -o /dev/null "-mtriple=thumbv7-apple-ios" -debug-only=post-RA-sched 2> %t
2 ; RUN: FileCheck %s < %t
4 ; Make sure that mayalias store-load dependencies have one cycle
5 ; latency regardless of whether they are barriers or not.
7 ; CHECK: ** List Scheduling
8 ; CHECK: SU(2){{.*}}STR{{.*}}Volatile
10 ; CHECK: ch SU(3): Latency=1
12 ; CHECK: SU(3){{.*}}LDR{{.*}}Volatile
14 ; CHECK: ch SU(2): Latency=1
17 ; CHECK: ** List Scheduling
18 ; CHECK: SU(2){{.*}}STR{{.*}}
20 ; CHECK: ch SU(3): Latency=1
22 ; CHECK: SU(3){{.*}}LDR{{.*}}
24 ; CHECK: ch SU(2): Latency=1
27 define i32 @f1(i32* nocapture %p1, i32* nocapture %p2) nounwind {
29 store volatile i32 65540, i32* %p1, align 4
30 %0 = load volatile i32, i32* %p2, align 4
34 define i32 @f2(i32* nocapture %p1, i32* nocapture %p2) nounwind {
36 store i32 65540, i32* %p1, align 4
37 %0 = load i32, i32* %p2, align 4