7
7
; RUN: -riscv-misched-store-clustering=false \
8
8
; RUN: -debug-only=machine-scheduler -o - 2>&1 < %s \
9
9
; RUN: | FileCheck -check-prefix=NOCLUSTER %s
10
+ ;
11
+ ; RUN: llc -mtriple=riscv32 -verify-misched \
12
+ ; RUN: -riscv-misched-load-clustering=false \
13
+ ; RUN: -debug-only=machine-scheduler -o - 2>&1 < %s \
14
+ ; RUN: | FileCheck -check-prefix=STCLUSTER %s
15
+ ; RUN: llc -mtriple=riscv64 -verify-misched \
16
+ ; RUN: -riscv-misched-load-clustering=false \
17
+ ; RUN: -debug-only=machine-scheduler -o - 2>&1 < %s \
18
+ ; RUN: | FileCheck -check-prefix=STCLUSTER %s
19
+ ;
10
20
; RUN: llc -mtriple=riscv32 -verify-misched \
21
+ ; RUN: -riscv-misched-store-clustering=false \
11
22
; RUN: -debug-only=machine-scheduler -o - 2>&1 < %s \
12
23
; RUN: | FileCheck -check-prefix=LDCLUSTER %s
13
24
; RUN: llc -mtriple=riscv64 -verify-misched \
25
+ ; RUN: -riscv-misched-store-clustering=false \
14
26
; RUN: -debug-only=machine-scheduler -o - 2>&1 < %s \
15
27
; RUN: | FileCheck -check-prefix=LDCLUSTER %s
28
+ ;
29
+ ; RUN: llc -mtriple=riscv32 -verify-misched \
30
+ ; RUN: -debug-only=machine-scheduler -o - 2>&1 < %s \
31
+ ; RUN: | FileCheck -check-prefix=DEFAULTCLUSTER %s
32
+ ; RUN: llc -mtriple=riscv64 -verify-misched \
33
+ ; RUN: -debug-only=machine-scheduler -o - 2>&1 < %s \
34
+ ; RUN: | FileCheck -check-prefix=DEFAULTCLUSTER %s
16
35
17
36
18
37
define i32 @load_clustering_1 (ptr nocapture %p ) {
@@ -24,13 +43,29 @@ define i32 @load_clustering_1(ptr nocapture %p) {
24
43
; NOCLUSTER: SU(4): %4:gpr = LW %0:gpr, 4
25
44
; NOCLUSTER: SU(5): %6:gpr = LW %0:gpr, 16
26
45
;
46
+ ; STCLUSTER: ********** MI Scheduling **********
47
+ ; STCLUSTER-LABEL: load_clustering_1:%bb.0
48
+ ; STCLUSTER: *** Final schedule for %bb.0 ***
49
+ ; STCLUSTER: SU(1): %1:gpr = LW %0:gpr, 12
50
+ ; STCLUSTER: SU(2): %2:gpr = LW %0:gpr, 8
51
+ ; STCLUSTER: SU(4): %4:gpr = LW %0:gpr, 4
52
+ ; STCLUSTER: SU(5): %6:gpr = LW %0:gpr, 16
53
+ ;
27
54
; LDCLUSTER: ********** MI Scheduling **********
28
55
; LDCLUSTER-LABEL: load_clustering_1:%bb.0
29
56
; LDCLUSTER: *** Final schedule for %bb.0 ***
30
57
; LDCLUSTER: SU(4): %4:gpr = LW %0:gpr, 4
31
58
; LDCLUSTER: SU(2): %2:gpr = LW %0:gpr, 8
32
59
; LDCLUSTER: SU(1): %1:gpr = LW %0:gpr, 12
33
60
; LDCLUSTER: SU(5): %6:gpr = LW %0:gpr, 16
61
+ ;
62
+ ; DEFAULTCLUSTER: ********** MI Scheduling **********
63
+ ; DEFAULTCLUSTER-LABEL: load_clustering_1:%bb.0
64
+ ; DEFAULTCLUSTER: *** Final schedule for %bb.0 ***
65
+ ; DEFAULTCLUSTER: SU(4): %4:gpr = LW %0:gpr, 4
66
+ ; DEFAULTCLUSTER: SU(2): %2:gpr = LW %0:gpr, 8
67
+ ; DEFAULTCLUSTER: SU(1): %1:gpr = LW %0:gpr, 12
68
+ ; DEFAULTCLUSTER: SU(5): %6:gpr = LW %0:gpr, 16
34
69
entry:
35
70
%arrayidx0 = getelementptr inbounds i32 , ptr %p , i32 3
36
71
%val0 = load i32 , ptr %arrayidx0
0 commit comments