Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-mca / X86 / BdVer2 / reg-move-elimination-3.s
blob4b53663690d6f43f99e948099de615c3aa8d06ce
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
4 vxorps %xmm0, %xmm0, %xmm0
5 vmovaps %xmm0, %xmm1
6 vmovups %xmm1, %xmm2
7 vmovapd %xmm2, %xmm3
8 vmovupd %xmm3, %xmm4
9 vmovdqa %xmm4, %xmm5
10 vmovdqu %xmm5, %xmm0
12 # CHECK: Iterations: 3
13 # CHECK-NEXT: Instructions: 21
14 # CHECK-NEXT: Total Cycles: 17
15 # CHECK-NEXT: Total uOps: 21
17 # CHECK: Dispatch Width: 4
18 # CHECK-NEXT: uOps Per Cycle: 1.24
19 # CHECK-NEXT: IPC: 1.24
20 # CHECK-NEXT: Block RThroughput: 4.0
22 # CHECK: Instruction Info:
23 # CHECK-NEXT: [1]: #uOps
24 # CHECK-NEXT: [2]: Latency
25 # CHECK-NEXT: [3]: RThroughput
26 # CHECK-NEXT: [4]: MayLoad
27 # CHECK-NEXT: [5]: MayStore
28 # CHECK-NEXT: [6]: HasSideEffects (U)
30 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
31 # CHECK-NEXT: 1 0 0.25 vxorps %xmm0, %xmm0, %xmm0
32 # CHECK-NEXT: 1 1 1.00 vmovaps %xmm0, %xmm1
33 # CHECK-NEXT: 1 1 1.00 vmovups %xmm1, %xmm2
34 # CHECK-NEXT: 1 1 1.00 vmovapd %xmm2, %xmm3
35 # CHECK-NEXT: 1 1 1.00 vmovupd %xmm3, %xmm4
36 # CHECK-NEXT: 1 1 1.00 vmovdqa %xmm4, %xmm5
37 # CHECK-NEXT: 1 1 1.00 vmovdqu %xmm5, %xmm0
39 # CHECK: Register File statistics:
40 # CHECK-NEXT: Total number of mappings created: 18
41 # CHECK-NEXT: Max number of mappings used: 15
43 # CHECK: * Register File #1 -- PdFpuPRF:
44 # CHECK-NEXT: Number of physical registers: 160
45 # CHECK-NEXT: Total number of mappings created: 18
46 # CHECK-NEXT: Max number of mappings used: 15
48 # CHECK: * Register File #2 -- PdIntegerPRF:
49 # CHECK-NEXT: Number of physical registers: 96
50 # CHECK-NEXT: Total number of mappings created: 0
51 # CHECK-NEXT: Max number of mappings used: 0
53 # CHECK: Resources:
54 # CHECK-NEXT: [0.0] - PdAGLU01
55 # CHECK-NEXT: [0.1] - PdAGLU01
56 # CHECK-NEXT: [1] - PdBranch
57 # CHECK-NEXT: [2] - PdCount
58 # CHECK-NEXT: [3] - PdDiv
59 # CHECK-NEXT: [4] - PdEX0
60 # CHECK-NEXT: [5] - PdEX1
61 # CHECK-NEXT: [6] - PdFPCVT
62 # CHECK-NEXT: [7.0] - PdFPFMA
63 # CHECK-NEXT: [7.1] - PdFPFMA
64 # CHECK-NEXT: [8.0] - PdFPMAL
65 # CHECK-NEXT: [8.1] - PdFPMAL
66 # CHECK-NEXT: [9] - PdFPMMA
67 # CHECK-NEXT: [10] - PdFPSTO
68 # CHECK-NEXT: [11] - PdFPU0
69 # CHECK-NEXT: [12] - PdFPU1
70 # CHECK-NEXT: [13] - PdFPU2
71 # CHECK-NEXT: [14] - PdFPU3
72 # CHECK-NEXT: [15] - PdFPXBR
73 # CHECK-NEXT: [16.0] - PdLoad
74 # CHECK-NEXT: [16.1] - PdLoad
75 # CHECK-NEXT: [17] - PdMul
76 # CHECK-NEXT: [18] - PdStore
78 # CHECK: Resource pressure per iteration:
79 # 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]
80 # CHECK-NEXT: - - - - - - - - 4.00 4.00 2.00 2.00 - - 3.00 3.00 - - - - - - -
82 # CHECK: Resource pressure by instruction:
83 # 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:
84 # CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - - vxorps %xmm0, %xmm0, %xmm0
85 # CHECK-NEXT: - - - - - - - - - 2.00 - - - - 0.67 0.33 - - - - - - - vmovaps %xmm0, %xmm1
86 # CHECK-NEXT: - - - - - - - - 2.00 - - - - - 1.00 - - - - - - - - vmovups %xmm1, %xmm2
87 # CHECK-NEXT: - - - - - - - - - 2.00 - - - - - 1.00 - - - - - - - vmovapd %xmm2, %xmm3
88 # CHECK-NEXT: - - - - - - - - 2.00 - - - - - 1.00 - - - - - - - - vmovupd %xmm3, %xmm4
89 # CHECK-NEXT: - - - - - - - - - - - 2.00 - - - 1.00 - - - - - - - vmovdqa %xmm4, %xmm5
90 # CHECK-NEXT: - - - - - - - - - - 2.00 - - - 0.33 0.67 - - - - - - - vmovdqu %xmm5, %xmm0
92 # CHECK: Timeline view:
93 # CHECK-NEXT: 0123456
94 # CHECK-NEXT: Index 0123456789
96 # CHECK: [0,0] DR . . .. vxorps %xmm0, %xmm0, %xmm0
97 # CHECK-NEXT: [0,1] DeER . . .. vmovaps %xmm0, %xmm1
98 # CHECK-NEXT: [0,2] D=eER. . .. vmovups %xmm1, %xmm2
99 # CHECK-NEXT: [0,3] D==eER . .. vmovapd %xmm2, %xmm3
100 # CHECK-NEXT: [0,4] .D==eER . .. vmovupd %xmm3, %xmm4
101 # CHECK-NEXT: [0,5] .D===eER . .. vmovdqa %xmm4, %xmm5
102 # CHECK-NEXT: [0,6] .D====eER . .. vmovdqu %xmm5, %xmm0
103 # CHECK-NEXT: [1,0] .D------R . .. vxorps %xmm0, %xmm0, %xmm0
104 # CHECK-NEXT: [1,1] . D==eE-R . .. vmovaps %xmm0, %xmm1
105 # CHECK-NEXT: [1,2] . D===eER . .. vmovups %xmm1, %xmm2
106 # CHECK-NEXT: [1,3] . D====eER. .. vmovapd %xmm2, %xmm3
107 # CHECK-NEXT: [1,4] . D=====eER .. vmovupd %xmm3, %xmm4
108 # CHECK-NEXT: [1,5] . D=====eER .. vmovdqa %xmm4, %xmm5
109 # CHECK-NEXT: [1,6] . D======eER .. vmovdqu %xmm5, %xmm0
110 # CHECK-NEXT: [2,0] . D--------R .. vxorps %xmm0, %xmm0, %xmm0
111 # CHECK-NEXT: [2,1] . D=====eE-R .. vmovaps %xmm0, %xmm1
112 # CHECK-NEXT: [2,2] . D=====eER .. vmovups %xmm1, %xmm2
113 # CHECK-NEXT: [2,3] . D======eER .. vmovapd %xmm2, %xmm3
114 # CHECK-NEXT: [2,4] . D=======eER.. vmovupd %xmm3, %xmm4
115 # CHECK-NEXT: [2,5] . D========eER. vmovdqa %xmm4, %xmm5
116 # CHECK-NEXT: [2,6] . D========eER vmovdqu %xmm5, %xmm0
118 # CHECK: Average Wait times (based on the timeline view):
119 # CHECK-NEXT: [0]: Executions
120 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
121 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
122 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
124 # CHECK: [0] [1] [2] [3]
125 # CHECK-NEXT: 0. 3 0.0 0.0 4.7 vxorps %xmm0, %xmm0, %xmm0
126 # CHECK-NEXT: 1. 3 3.3 3.3 0.7 vmovaps %xmm0, %xmm1
127 # CHECK-NEXT: 2. 3 4.0 0.0 0.0 vmovups %xmm1, %xmm2
128 # CHECK-NEXT: 3. 3 5.0 0.0 0.0 vmovapd %xmm2, %xmm3
129 # CHECK-NEXT: 4. 3 5.7 0.0 0.0 vmovupd %xmm3, %xmm4
130 # CHECK-NEXT: 5. 3 6.3 0.0 0.0 vmovdqa %xmm4, %xmm5
131 # CHECK-NEXT: 6. 3 7.0 0.0 0.0 vmovdqu %xmm5, %xmm0