1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -iterations=3 -timeline -register-file-stats < %s | FileCheck %s
15 # CHECK: Iterations: 3
16 # CHECK-NEXT: Instructions: 27
17 # CHECK-NEXT: Total Cycles: 15
18 # CHECK-NEXT: Total uOps: 27
20 # CHECK: Dispatch Width: 2
21 # CHECK-NEXT: uOps Per Cycle: 1.80
22 # CHECK-NEXT: IPC: 1.80
23 # CHECK-NEXT: Block RThroughput: 4.5
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.50 pxor %mm0, %mm0
35 # CHECK-NEXT: 1 1 0.50 movq %mm0, %mm1
36 # CHECK-NEXT: 1 0 0.50 xorps %xmm0, %xmm0
37 # CHECK-NEXT: 1 1 0.50 movaps %xmm0, %xmm1
38 # CHECK-NEXT: 1 1 0.50 movups %xmm1, %xmm2
39 # CHECK-NEXT: 1 1 0.50 movapd %xmm2, %xmm3
40 # CHECK-NEXT: 1 1 0.50 movupd %xmm3, %xmm4
41 # CHECK-NEXT: 1 1 0.50 movdqa %xmm4, %xmm5
42 # CHECK-NEXT: 1 1 0.50 movdqu %xmm5, %xmm0
44 # CHECK: Register File statistics:
45 # CHECK-NEXT: Total number of mappings created: 0
46 # CHECK-NEXT: Max number of mappings used: 0
48 # CHECK: * Register File #1 -- JFpuPRF:
49 # CHECK-NEXT: Number of physical registers: 72
50 # CHECK-NEXT: Total number of mappings created: 0
51 # CHECK-NEXT: Max number of mappings used: 0
52 # CHECK-NEXT: Number of optimizable moves: 21
53 # CHECK-NEXT: Number of moves eliminated: 21 (100.0%)
54 # CHECK-NEXT: Number of zero moves: 21 (100.0%)
55 # CHECK-NEXT: Max moves eliminated per cycle: 2
57 # CHECK: * Register File #2 -- JIntegerPRF:
58 # CHECK-NEXT: Number of physical registers: 64
59 # CHECK-NEXT: Total number of mappings created: 0
60 # CHECK-NEXT: Max number of mappings used: 0
63 # CHECK-NEXT: [0] - JALU0
64 # CHECK-NEXT: [1] - JALU1
65 # CHECK-NEXT: [2] - JDiv
66 # CHECK-NEXT: [3] - JFPA
67 # CHECK-NEXT: [4] - JFPM
68 # CHECK-NEXT: [5] - JFPU0
69 # CHECK-NEXT: [6] - JFPU1
70 # CHECK-NEXT: [7] - JLAGU
71 # CHECK-NEXT: [8] - JMul
72 # CHECK-NEXT: [9] - JSAGU
73 # CHECK-NEXT: [10] - JSTC
74 # CHECK-NEXT: [11] - JVALU0
75 # CHECK-NEXT: [12] - JVALU1
76 # CHECK-NEXT: [13] - JVIMUL
78 # CHECK: Resource pressure per iteration:
79 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
80 # CHECK-NEXT: - - - - - - - - - - - - - -
82 # CHECK: Resource pressure by instruction:
83 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
84 # CHECK-NEXT: - - - - - - - - - - - - - - pxor %mm0, %mm0
85 # CHECK-NEXT: - - - - - - - - - - - - - - movq %mm0, %mm1
86 # CHECK-NEXT: - - - - - - - - - - - - - - xorps %xmm0, %xmm0
87 # CHECK-NEXT: - - - - - - - - - - - - - - movaps %xmm0, %xmm1
88 # CHECK-NEXT: - - - - - - - - - - - - - - movups %xmm1, %xmm2
89 # CHECK-NEXT: - - - - - - - - - - - - - - movapd %xmm2, %xmm3
90 # CHECK-NEXT: - - - - - - - - - - - - - - movupd %xmm3, %xmm4
91 # CHECK-NEXT: - - - - - - - - - - - - - - movdqa %xmm4, %xmm5
92 # CHECK-NEXT: - - - - - - - - - - - - - - movdqu %xmm5, %xmm0
94 # CHECK: Timeline view:
96 # CHECK-NEXT: Index 0123456789
98 # CHECK: [0,0] DR . . . pxor %mm0, %mm0
99 # CHECK-NEXT: [0,1] DR . . . movq %mm0, %mm1
100 # CHECK-NEXT: [0,2] .DR . . . xorps %xmm0, %xmm0
101 # CHECK-NEXT: [0,3] .DR . . . movaps %xmm0, %xmm1
102 # CHECK-NEXT: [0,4] . DR . . . movups %xmm1, %xmm2
103 # CHECK-NEXT: [0,5] . DR . . . movapd %xmm2, %xmm3
104 # CHECK-NEXT: [0,6] . DR. . . movupd %xmm3, %xmm4
105 # CHECK-NEXT: [0,7] . DR. . . movdqa %xmm4, %xmm5
106 # CHECK-NEXT: [0,8] . DR . . movdqu %xmm5, %xmm0
107 # CHECK-NEXT: [1,0] . DR . . pxor %mm0, %mm0
108 # CHECK-NEXT: [1,1] . DR . . movq %mm0, %mm1
109 # CHECK-NEXT: [1,2] . DR . . xorps %xmm0, %xmm0
110 # CHECK-NEXT: [1,3] . .DR . . movaps %xmm0, %xmm1
111 # CHECK-NEXT: [1,4] . .DR . . movups %xmm1, %xmm2
112 # CHECK-NEXT: [1,5] . . DR . . movapd %xmm2, %xmm3
113 # CHECK-NEXT: [1,6] . . DR . . movupd %xmm3, %xmm4
114 # CHECK-NEXT: [1,7] . . DR. . movdqa %xmm4, %xmm5
115 # CHECK-NEXT: [1,8] . . DR. . movdqu %xmm5, %xmm0
116 # CHECK-NEXT: [2,0] . . DR . pxor %mm0, %mm0
117 # CHECK-NEXT: [2,1] . . DR . movq %mm0, %mm1
118 # CHECK-NEXT: [2,2] . . DR . xorps %xmm0, %xmm0
119 # CHECK-NEXT: [2,3] . . DR . movaps %xmm0, %xmm1
120 # CHECK-NEXT: [2,4] . . .DR . movups %xmm1, %xmm2
121 # CHECK-NEXT: [2,5] . . .DR . movapd %xmm2, %xmm3
122 # CHECK-NEXT: [2,6] . . . DR. movupd %xmm3, %xmm4
123 # CHECK-NEXT: [2,7] . . . DR. movdqa %xmm4, %xmm5
124 # CHECK-NEXT: [2,8] . . . DR movdqu %xmm5, %xmm0
126 # CHECK: Average Wait times (based on the timeline view):
127 # CHECK-NEXT: [0]: Executions
128 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
129 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
130 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
132 # CHECK: [0] [1] [2] [3]
133 # CHECK-NEXT: 0. 3 0.0 0.0 0.0 pxor %mm0, %mm0
134 # CHECK-NEXT: 1. 3 0.0 0.0 0.0 movq %mm0, %mm1
135 # CHECK-NEXT: 2. 3 0.0 0.0 0.0 xorps %xmm0, %xmm0
136 # CHECK-NEXT: 3. 3 0.0 0.0 0.0 movaps %xmm0, %xmm1
137 # CHECK-NEXT: 4. 3 0.0 0.0 0.0 movups %xmm1, %xmm2
138 # CHECK-NEXT: 5. 3 0.0 0.0 0.0 movapd %xmm2, %xmm3
139 # CHECK-NEXT: 6. 3 0.0 0.0 0.0 movupd %xmm3, %xmm4
140 # CHECK-NEXT: 7. 3 0.0 0.0 0.0 movdqa %xmm4, %xmm5
141 # CHECK-NEXT: 8. 3 0.0 0.0 0.0 movdqu %xmm5, %xmm0