[llvm-mca][BtVer2] Add two more move-elimination tests. NFC
[llvm-core.git] / test / tools / llvm-mca / X86 / BtVer2 / reg-move-elimination-2.s
blob33cd39721949e15dea99c5b0f62539946a99cbc6
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
4 pxor %mm0, %mm0
5 movq %mm0, %mm1
7 xorps %xmm0, %xmm0
8 movaps %xmm0, %xmm1
9 movups %xmm1, %xmm2
10 movapd %xmm2, %xmm3
11 movupd %xmm3, %xmm4
12 movdqa %xmm4, %xmm5
13 movdqu %xmm5, %xmm0
15 # CHECK: Iterations: 3
16 # CHECK-NEXT: Instructions: 27
17 # CHECK-NEXT: Total Cycles: 19
18 # CHECK-NEXT: Total uOps: 27
20 # CHECK: Dispatch Width: 2
21 # CHECK-NEXT: uOps Per Cycle: 1.42
22 # CHECK-NEXT: IPC: 1.42
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: 21
46 # CHECK-NEXT: Max number of mappings used: 8
48 # CHECK: * Register File #1 -- JFpuPRF:
49 # CHECK-NEXT: Number of physical registers: 72
50 # CHECK-NEXT: Total number of mappings created: 21
51 # CHECK-NEXT: Max number of mappings used: 8
53 # CHECK: * Register File #2 -- JIntegerPRF:
54 # CHECK-NEXT: Number of physical registers: 64
55 # CHECK-NEXT: Total number of mappings created: 0
56 # CHECK-NEXT: Max number of mappings used: 0
58 # CHECK: Resources:
59 # CHECK-NEXT: [0] - JALU0
60 # CHECK-NEXT: [1] - JALU1
61 # CHECK-NEXT: [2] - JDiv
62 # CHECK-NEXT: [3] - JFPA
63 # CHECK-NEXT: [4] - JFPM
64 # CHECK-NEXT: [5] - JFPU0
65 # CHECK-NEXT: [6] - JFPU1
66 # CHECK-NEXT: [7] - JLAGU
67 # CHECK-NEXT: [8] - JMul
68 # CHECK-NEXT: [9] - JSAGU
69 # CHECK-NEXT: [10] - JSTC
70 # CHECK-NEXT: [11] - JVALU0
71 # CHECK-NEXT: [12] - JVALU1
72 # CHECK-NEXT: [13] - JVIMUL
74 # CHECK: Resource pressure per iteration:
75 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
76 # CHECK-NEXT: - - - 2.00 2.00 3.33 3.67 - - - - 1.33 1.67 -
78 # CHECK: Resource pressure by instruction:
79 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
80 # CHECK-NEXT: - - - - - - - - - - - - - - pxor %mm0, %mm0
81 # CHECK-NEXT: - - - - - - 1.00 - - - - - 1.00 - movq %mm0, %mm1
82 # CHECK-NEXT: - - - - - - - - - - - - - - xorps %xmm0, %xmm0
83 # CHECK-NEXT: - - - - 1.00 0.33 0.67 - - - - - - - movaps %xmm0, %xmm1
84 # CHECK-NEXT: - - - 1.00 - 0.33 0.67 - - - - - - - movups %xmm1, %xmm2
85 # CHECK-NEXT: - - - - 1.00 0.67 0.33 - - - - - - - movapd %xmm2, %xmm3
86 # CHECK-NEXT: - - - 1.00 - 0.33 0.67 - - - - - - - movupd %xmm3, %xmm4
87 # CHECK-NEXT: - - - - - 1.00 - - - - - 1.00 - - movdqa %xmm4, %xmm5
88 # CHECK-NEXT: - - - - - 0.67 0.33 - - - - 0.33 0.67 - movdqu %xmm5, %xmm0
90 # CHECK: Timeline view:
91 # CHECK-NEXT: 012345678
92 # CHECK-NEXT: Index 0123456789
94 # CHECK: [0,0] DR . . . . pxor %mm0, %mm0
95 # CHECK-NEXT: [0,1] DeER . . . . movq %mm0, %mm1
96 # CHECK-NEXT: [0,2] .D-R . . . . xorps %xmm0, %xmm0
97 # CHECK-NEXT: [0,3] .DeER. . . . movaps %xmm0, %xmm1
98 # CHECK-NEXT: [0,4] . DeER . . . movups %xmm1, %xmm2
99 # CHECK-NEXT: [0,5] . D=eER . . . movapd %xmm2, %xmm3
100 # CHECK-NEXT: [0,6] . D=eER . . . movupd %xmm3, %xmm4
101 # CHECK-NEXT: [0,7] . D==eER . . . movdqa %xmm4, %xmm5
102 # CHECK-NEXT: [0,8] . D==eER. . . movdqu %xmm5, %xmm0
103 # CHECK-NEXT: [1,0] . D----R. . . pxor %mm0, %mm0
104 # CHECK-NEXT: [1,1] . DeE--R . . movq %mm0, %mm1
105 # CHECK-NEXT: [1,2] . D----R . . xorps %xmm0, %xmm0
106 # CHECK-NEXT: [1,3] . .DeE--R . . movaps %xmm0, %xmm1
107 # CHECK-NEXT: [1,4] . .D=eE-R . . movups %xmm1, %xmm2
108 # CHECK-NEXT: [1,5] . . D=eE-R . . movapd %xmm2, %xmm3
109 # CHECK-NEXT: [1,6] . . D==eER . . movupd %xmm3, %xmm4
110 # CHECK-NEXT: [1,7] . . D==eER . . movdqa %xmm4, %xmm5
111 # CHECK-NEXT: [1,8] . . D===eER. . movdqu %xmm5, %xmm0
112 # CHECK-NEXT: [2,0] . . D----R. . pxor %mm0, %mm0
113 # CHECK-NEXT: [2,1] . . DeE---R . movq %mm0, %mm1
114 # CHECK-NEXT: [2,2] . . D----R . xorps %xmm0, %xmm0
115 # CHECK-NEXT: [2,3] . . DeE---R . movaps %xmm0, %xmm1
116 # CHECK-NEXT: [2,4] . . .DeE--R . movups %xmm1, %xmm2
117 # CHECK-NEXT: [2,5] . . .D=eE--R. movapd %xmm2, %xmm3
118 # CHECK-NEXT: [2,6] . . . D=eE-R. movupd %xmm3, %xmm4
119 # CHECK-NEXT: [2,7] . . . D==eE-R movdqa %xmm4, %xmm5
120 # CHECK-NEXT: [2,8] . . . D==eER movdqu %xmm5, %xmm0
122 # CHECK: Average Wait times (based on the timeline view):
123 # CHECK-NEXT: [0]: Executions
124 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
125 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
126 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
128 # CHECK: [0] [1] [2] [3]
129 # CHECK-NEXT: 0. 3 0.0 0.0 2.7 pxor %mm0, %mm0
130 # CHECK-NEXT: 1. 3 1.0 1.0 1.7 movq %mm0, %mm1
131 # CHECK-NEXT: 2. 3 0.0 0.0 3.0 xorps %xmm0, %xmm0
132 # CHECK-NEXT: 3. 3 1.0 1.0 1.7 movaps %xmm0, %xmm1
133 # CHECK-NEXT: 4. 3 1.3 0.0 1.0 movups %xmm1, %xmm2
134 # CHECK-NEXT: 5. 3 2.0 0.0 1.0 movapd %xmm2, %xmm3
135 # CHECK-NEXT: 6. 3 2.3 0.0 0.3 movupd %xmm3, %xmm4
136 # CHECK-NEXT: 7. 3 3.0 0.0 0.3 movdqa %xmm4, %xmm5
137 # CHECK-NEXT: 8. 3 3.3 0.0 0.0 movdqu %xmm5, %xmm0