independent-load-stores.s
7.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -timeline -timeline-max-iterations=1 < %s | FileCheck %s -check-prefixes=ALL,NOALIAS
# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -timeline -timeline-max-iterations=1 -noalias=false < %s | FileCheck %s -check-prefixes=ALL,YESALIAS
addq $44, 64(%r14)
addq $44, 128(%r14)
addq $44, 192(%r14)
addq $44, 256(%r14)
addq $44, 320(%r14)
addq $44, 384(%r14)
addq $44, 448(%r14)
addq $44, 512(%r14)
addq $44, 576(%r14)
addq $44, 640(%r14)
# ALL: Iterations: 100
# ALL-NEXT: Instructions: 1000
# NOALIAS-NEXT: Total Cycles: 1009
# YESALIAS-NEXT: Total Cycles: 7003
# ALL-NEXT: Total uOps: 3000
# ALL: Dispatch Width: 4
# NOALIAS-NEXT: uOps Per Cycle: 2.97
# NOALIAS-NEXT: IPC: 0.99
# YESALIAS-NEXT: uOps Per Cycle: 0.43
# YESALIAS-NEXT: IPC: 0.14
# ALL-NEXT: Block RThroughput: 10.0
# ALL: Instruction Info:
# ALL-NEXT: [1]: #uOps
# ALL-NEXT: [2]: Latency
# ALL-NEXT: [3]: RThroughput
# ALL-NEXT: [4]: MayLoad
# ALL-NEXT: [5]: MayStore
# ALL-NEXT: [6]: HasSideEffects (U)
# ALL: [1] [2] [3] [4] [5] [6] Instructions:
# ALL-NEXT: 3 7 1.00 * * addq $44, 64(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 128(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 192(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 256(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 320(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 384(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 448(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 512(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 576(%r14)
# ALL-NEXT: 3 7 1.00 * * addq $44, 640(%r14)
# ALL: Resources:
# ALL-NEXT: [0] - HWDivider
# ALL-NEXT: [1] - HWFPDivider
# ALL-NEXT: [2] - HWPort0
# ALL-NEXT: [3] - HWPort1
# ALL-NEXT: [4] - HWPort2
# ALL-NEXT: [5] - HWPort3
# ALL-NEXT: [6] - HWPort4
# ALL-NEXT: [7] - HWPort5
# ALL-NEXT: [8] - HWPort6
# ALL-NEXT: [9] - HWPort7
# ALL: Resource pressure per iteration:
# ALL-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
# ALL-NEXT: - - 2.50 2.50 6.66 6.67 10.00 2.50 2.50 6.67
# ALL: Resource pressure by instruction:
# ALL-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
# ALL-NEXT: - - - 0.50 0.66 0.67 1.00 - 0.50 0.67 addq $44, 64(%r14)
# ALL-NEXT: - - 0.50 - 0.67 0.66 1.00 0.50 - 0.67 addq $44, 128(%r14)
# ALL-NEXT: - - - 0.50 0.67 0.67 1.00 - 0.50 0.66 addq $44, 192(%r14)
# ALL-NEXT: - - 0.50 - 0.66 0.67 1.00 0.50 - 0.67 addq $44, 256(%r14)
# ALL-NEXT: - - - 0.50 0.67 0.66 1.00 - 0.50 0.67 addq $44, 320(%r14)
# ALL-NEXT: - - 0.50 - 0.67 0.67 1.00 0.50 - 0.66 addq $44, 384(%r14)
# ALL-NEXT: - - - 0.50 0.66 0.67 1.00 - 0.50 0.67 addq $44, 448(%r14)
# ALL-NEXT: - - 0.50 - 0.67 0.66 1.00 0.50 - 0.67 addq $44, 512(%r14)
# ALL-NEXT: - - - 0.50 0.67 0.67 1.00 - 0.50 0.66 addq $44, 576(%r14)
# ALL-NEXT: - - 0.50 - 0.66 0.67 1.00 0.50 - 0.67 addq $44, 640(%r14)
# ALL: Timeline view:
# NOALIAS-NEXT: 012345678
# NOALIAS-NEXT: Index 0123456789
# YESALIAS-NEXT: 0123456789 0123456789 0123456789 012
# YESALIAS-NEXT: Index 0123456789 0123456789 0123456789 0123456789
# NOALIAS: [0,0] DeeeeeeeER. . . addq $44, 64(%r14)
# NOALIAS-NEXT: [0,1] .DeeeeeeeER . . addq $44, 128(%r14)
# NOALIAS-NEXT: [0,2] . DeeeeeeeER . . addq $44, 192(%r14)
# NOALIAS-NEXT: [0,3] . DeeeeeeeER . . addq $44, 256(%r14)
# NOALIAS-NEXT: [0,4] . DeeeeeeeER . . addq $44, 320(%r14)
# NOALIAS-NEXT: [0,5] . DeeeeeeeER. . addq $44, 384(%r14)
# NOALIAS-NEXT: [0,6] . .DeeeeeeeER . addq $44, 448(%r14)
# NOALIAS-NEXT: [0,7] . . DeeeeeeeER . addq $44, 512(%r14)
# NOALIAS-NEXT: [0,8] . . DeeeeeeeER. addq $44, 576(%r14)
# NOALIAS-NEXT: [0,9] . . DeeeeeeeER addq $44, 640(%r14)
# YESALIAS: [0,0] DeeeeeeeER. . . . . . . . . . . . . . addq $44, 64(%r14)
# YESALIAS-NEXT: [0,1] .D======eeeeeeeER . . . . . . . . . . . . addq $44, 128(%r14)
# YESALIAS-NEXT: [0,2] . D============eeeeeeeER . . . . . . . . . . . addq $44, 192(%r14)
# YESALIAS-NEXT: [0,3] . D==================eeeeeeeER . . . . . . . . . addq $44, 256(%r14)
# YESALIAS-NEXT: [0,4] . D========================eeeeeeeER . . . . . . . . addq $44, 320(%r14)
# YESALIAS-NEXT: [0,5] . D==============================eeeeeeeER. . . . . . . addq $44, 384(%r14)
# YESALIAS-NEXT: [0,6] . .D====================================eeeeeeeER . . . . . addq $44, 448(%r14)
# YESALIAS-NEXT: [0,7] . . D==========================================eeeeeeeER . . . . addq $44, 512(%r14)
# YESALIAS-NEXT: [0,8] . . D================================================eeeeeeeER . . addq $44, 576(%r14)
# YESALIAS-NEXT: [0,9] . . D======================================================eeeeeeeER addq $44, 640(%r14)
# ALL: Average Wait times (based on the timeline view):
# ALL-NEXT: [0]: Executions
# ALL-NEXT: [1]: Average time spent waiting in a scheduler's queue
# ALL-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
# ALL-NEXT: [3]: Average time elapsed from WB until retire stage
# ALL: [0] [1] [2] [3]
# ALL-NEXT: 0. 1 1.0 1.0 0.0 addq $44, 64(%r14)
# NOALIAS-NEXT: 1. 1 1.0 1.0 0.0 addq $44, 128(%r14)
# NOALIAS-NEXT: 2. 1 1.0 1.0 0.0 addq $44, 192(%r14)
# NOALIAS-NEXT: 3. 1 1.0 1.0 0.0 addq $44, 256(%r14)
# NOALIAS-NEXT: 4. 1 1.0 1.0 0.0 addq $44, 320(%r14)
# NOALIAS-NEXT: 5. 1 1.0 1.0 0.0 addq $44, 384(%r14)
# NOALIAS-NEXT: 6. 1 1.0 1.0 0.0 addq $44, 448(%r14)
# NOALIAS-NEXT: 7. 1 1.0 1.0 0.0 addq $44, 512(%r14)
# NOALIAS-NEXT: 8. 1 1.0 1.0 0.0 addq $44, 576(%r14)
# NOALIAS-NEXT: 9. 1 1.0 1.0 0.0 addq $44, 640(%r14)
# NOALIAS-NEXT: 1 1.0 1.0 0.0 <total>
# YESALIAS-NEXT: 1. 1 7.0 0.0 0.0 addq $44, 128(%r14)
# YESALIAS-NEXT: 2. 1 13.0 0.0 0.0 addq $44, 192(%r14)
# YESALIAS-NEXT: 3. 1 19.0 0.0 0.0 addq $44, 256(%r14)
# YESALIAS-NEXT: 4. 1 25.0 0.0 0.0 addq $44, 320(%r14)
# YESALIAS-NEXT: 5. 1 31.0 0.0 0.0 addq $44, 384(%r14)
# YESALIAS-NEXT: 6. 1 37.0 0.0 0.0 addq $44, 448(%r14)
# YESALIAS-NEXT: 7. 1 43.0 0.0 0.0 addq $44, 512(%r14)
# YESALIAS-NEXT: 8. 1 49.0 0.0 0.0 addq $44, 576(%r14)
# YESALIAS-NEXT: 9. 1 55.0 0.0 0.0 addq $44, 640(%r14)
# YESALIAS-NEXT: 1 28.0 0.1 0.0 <total>