1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -iterations=3 -timeline -register-file-stats < %s | FileCheck %s
15 # CHECK: Iterations: 3
16 # CHECK-NEXT: Instructions: 27
17 # CHECK-NEXT: Total Cycles: 17
18 # CHECK-NEXT: Total uOps: 27
20 # CHECK: Dispatch Width: 4
21 # CHECK-NEXT: uOps Per Cycle: 1.59
22 # CHECK-NEXT: IPC: 1.59
23 # CHECK-NEXT: Block RThroughput: 4.0
25 # CHECK: Instruction Info:
26 # CHECK-NEXT: [1]: #uOps
27 # CHECK-NEXT: [2]: Latency
28 # CHECK-NEXT: [3]: RThroughput
29 # CHECK-NEXT: [4]: MayLoad
30 # CHECK-NEXT: [5]: MayStore
31 # CHECK-NEXT: [6]: HasSideEffects (U)
33 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
34 # CHECK-NEXT: 1 0 0.25 pxor %mm0, %mm0
35 # CHECK-NEXT: 1 2 0.50 movq %mm0, %mm1
36 # CHECK-NEXT: 1 0 0.25 xorps %xmm0, %xmm0
37 # CHECK-NEXT: 1 1 1.00 movaps %xmm0, %xmm1
38 # CHECK-NEXT: 1 1 1.00 movups %xmm1, %xmm2
39 # CHECK-NEXT: 1 1 1.00 movapd %xmm2, %xmm3
40 # CHECK-NEXT: 1 1 1.00 movupd %xmm3, %xmm4
41 # CHECK-NEXT: 1 1 0.50 movdqa %xmm4, %xmm5
42 # CHECK-NEXT: 1 1 1.00 movdqu %xmm5, %xmm0
44 # CHECK: Register File statistics:
45 # CHECK-NEXT: Total number of mappings created: 21
46 # CHECK-NEXT: Max number of mappings used: 16
48 # CHECK: * Register File #1 -- PdFpuPRF:
49 # CHECK-NEXT: Number of physical registers: 160
50 # CHECK-NEXT: Total number of mappings created: 21
51 # CHECK-NEXT: Max number of mappings used: 16
53 # CHECK: * Register File #2 -- PdIntegerPRF:
54 # CHECK-NEXT: Number of physical registers: 96
55 # CHECK-NEXT: Total number of mappings created: 0
56 # CHECK-NEXT: Max number of mappings used: 0
59 # CHECK-NEXT: [0.0] - PdAGLU01
60 # CHECK-NEXT: [0.1] - PdAGLU01
61 # CHECK-NEXT: [1] - PdBranch
62 # CHECK-NEXT: [2] - PdCount
63 # CHECK-NEXT: [3] - PdDiv
64 # CHECK-NEXT: [4] - PdEX0
65 # CHECK-NEXT: [5] - PdEX1
66 # CHECK-NEXT: [6] - PdFPCVT
67 # CHECK-NEXT: [7.0] - PdFPFMA
68 # CHECK-NEXT: [7.1] - PdFPFMA
69 # CHECK-NEXT: [8.0] - PdFPMAL
70 # CHECK-NEXT: [8.1] - PdFPMAL
71 # CHECK-NEXT: [9] - PdFPMMA
72 # CHECK-NEXT: [10] - PdFPSTO
73 # CHECK-NEXT: [11] - PdFPU0
74 # CHECK-NEXT: [12] - PdFPU1
75 # CHECK-NEXT: [13] - PdFPU2
76 # CHECK-NEXT: [14] - PdFPU3
77 # CHECK-NEXT: [15] - PdFPXBR
78 # CHECK-NEXT: [16.0] - PdLoad
79 # CHECK-NEXT: [16.1] - PdLoad
80 # CHECK-NEXT: [17] - PdMul
81 # CHECK-NEXT: [18] - PdStore
83 # CHECK: Resource pressure per iteration:
84 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18]
85 # CHECK-NEXT: - - - - - - - - 4.00 4.00 1.67 2.33 - - 3.33 3.67 - - - - - - -
87 # CHECK: Resource pressure by instruction:
88 # CHECK-NEXT: [0.0] [0.1] [1] [2] [3] [4] [5] [6] [7.0] [7.1] [8.0] [8.1] [9] [10] [11] [12] [13] [14] [15] [16.0] [16.1] [17] [18] Instructions:
89 # CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - - pxor %mm0, %mm0
90 # CHECK-NEXT: - - - - - - - - - - 0.33 0.67 - - 0.33 0.67 - - - - - - - movq %mm0, %mm1
91 # CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - - xorps %xmm0, %xmm0
92 # CHECK-NEXT: - - - - - - - - - 2.00 - - - - 0.67 0.33 - - - - - - - movaps %xmm0, %xmm1
93 # CHECK-NEXT: - - - - - - - - 2.00 - - - - - 0.33 0.67 - - - - - - - movups %xmm1, %xmm2
94 # CHECK-NEXT: - - - - - - - - - 2.00 - - - - 0.67 0.33 - - - - - - - movapd %xmm2, %xmm3
95 # CHECK-NEXT: - - - - - - - - 2.00 - - - - - 0.33 0.67 - - - - - - - movupd %xmm3, %xmm4
96 # CHECK-NEXT: - - - - - - - - - - 0.67 0.33 - - 0.67 0.33 - - - - - - - movdqa %xmm4, %xmm5
97 # CHECK-NEXT: - - - - - - - - - - 0.67 1.33 - - 0.33 0.67 - - - - - - - movdqu %xmm5, %xmm0
99 # CHECK: Timeline view:
100 # CHECK-NEXT: 0123456
101 # CHECK-NEXT: Index 0123456789
103 # CHECK: [0,0] DR . . .. pxor %mm0, %mm0
104 # CHECK-NEXT: [0,1] DeeER. . .. movq %mm0, %mm1
105 # CHECK-NEXT: [0,2] D---R. . .. xorps %xmm0, %xmm0
106 # CHECK-NEXT: [0,3] DeE-R. . .. movaps %xmm0, %xmm1
107 # CHECK-NEXT: [0,4] .DeER. . .. movups %xmm1, %xmm2
108 # CHECK-NEXT: [0,5] .D=eER . .. movapd %xmm2, %xmm3
109 # CHECK-NEXT: [0,6] .D==eER . .. movupd %xmm3, %xmm4
110 # CHECK-NEXT: [0,7] .D===eER . .. movdqa %xmm4, %xmm5
111 # CHECK-NEXT: [0,8] . D===eER . .. movdqu %xmm5, %xmm0
112 # CHECK-NEXT: [1,0] . D-----R . .. pxor %mm0, %mm0
113 # CHECK-NEXT: [1,1] . DeeE--R . .. movq %mm0, %mm1
114 # CHECK-NEXT: [1,2] . D-----R . .. xorps %xmm0, %xmm0
115 # CHECK-NEXT: [1,3] . D=eE--R. .. movaps %xmm0, %xmm1
116 # CHECK-NEXT: [1,4] . D==eE-R. .. movups %xmm1, %xmm2
117 # CHECK-NEXT: [1,5] . D===eER. .. movapd %xmm2, %xmm3
118 # CHECK-NEXT: [1,6] . D====eER .. movupd %xmm3, %xmm4
119 # CHECK-NEXT: [1,7] . D====eER .. movdqa %xmm4, %xmm5
120 # CHECK-NEXT: [1,8] . D=====eER .. movdqu %xmm5, %xmm0
121 # CHECK-NEXT: [2,0] . D-------R .. pxor %mm0, %mm0
122 # CHECK-NEXT: [2,1] . D==eeE--R .. movq %mm0, %mm1
123 # CHECK-NEXT: [2,2] . D------R .. xorps %xmm0, %xmm0
124 # CHECK-NEXT: [2,3] . D===eE--R .. movaps %xmm0, %xmm1
125 # CHECK-NEXT: [2,4] . D====eE-R .. movups %xmm1, %xmm2
126 # CHECK-NEXT: [2,5] . D=====eER .. movapd %xmm2, %xmm3
127 # CHECK-NEXT: [2,6] . .D=====eER.. movupd %xmm3, %xmm4
128 # CHECK-NEXT: [2,7] . .D======eER. movdqa %xmm4, %xmm5
129 # CHECK-NEXT: [2,8] . .D=======eER movdqu %xmm5, %xmm0
131 # CHECK: Average Wait times (based on the timeline view):
132 # CHECK-NEXT: [0]: Executions
133 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
134 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
135 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
137 # CHECK: [0] [1] [2] [3]
138 # CHECK-NEXT: 0. 3 0.0 0.0 4.0 pxor %mm0, %mm0
139 # CHECK-NEXT: 1. 3 1.7 1.7 1.3 movq %mm0, %mm1
140 # CHECK-NEXT: 2. 3 0.0 0.0 4.7 xorps %xmm0, %xmm0
141 # CHECK-NEXT: 3. 3 2.3 2.3 1.7 movaps %xmm0, %xmm1
142 # CHECK-NEXT: 4. 3 3.0 0.0 0.7 movups %xmm1, %xmm2
143 # CHECK-NEXT: 5. 3 4.0 0.0 0.0 movapd %xmm2, %xmm3
144 # CHECK-NEXT: 6. 3 4.7 0.0 0.0 movupd %xmm3, %xmm4
145 # CHECK-NEXT: 7. 3 5.3 0.0 0.0 movdqa %xmm4, %xmm5
146 # CHECK-NEXT: 8. 3 6.0 0.0 0.0 movdqu %xmm5, %xmm0