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
9 ; CHECK-NOT: SU({{.*}}): Ord
10 ; CHECK: SU(3): Ord Latency=1
11 ; CHECK-NOT: SU({{.*}}): Ord
12 ; CHECK: SU(3){{.*}}LDR{{.*}}(volatile
13 ; CHECK-NOT: SU({{.*}}): Ord
14 ; CHECK: SU(2): Ord Latency=1
15 ; CHECK-NOT: SU({{.*}}): Ord
17 ; CHECK: ** List Scheduling
18 ; CHECK: SU(2){{.*}}STR{{.*}}
19 ; CHECK-NOT: SU({{.*}}): Ord
20 ; CHECK: SU(3): Ord Latency=1
21 ; CHECK-NOT: SU({{.*}}): Ord
22 ; CHECK: SU(3){{.*}}LDR{{.*}}
23 ; CHECK-NOT: SU({{.*}}): Ord
24 ; CHECK: SU(2): Ord Latency=1
25 ; CHECK-NOT: SU({{.*}}): Ord
27 define i32 @f1(ptr nocapture %p1, ptr nocapture %p2) nounwind {
29 store volatile i32 65540, ptr %p1, align 4
30 %0 = load volatile i32, ptr %p2, align 4
34 define i32 @f2(ptr nocapture %p1, ptr nocapture %p2) nounwind {
36 store i32 65540, ptr %p1, align 4
37 %0 = load i32, ptr %p2, align 4