1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -iterations=3 -timeline -register-file-stats < %s | FileCheck %s
15 # CHECK: Iterations: 3
16 # CHECK-NEXT: Instructions: 27
17 # CHECK-NEXT: Total Cycles: 22
18 # CHECK-NEXT: Total uOps: 27
20 # CHECK: Dispatch Width: 4
21 # CHECK-NEXT: uOps Per Cycle: 1.23
22 # CHECK-NEXT: IPC: 1.23
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 1 0.33 pxor %mm0, %mm0
35 # CHECK-NEXT: 1 1 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.33 movdqa %xmm4, %xmm5
42 # CHECK-NEXT: 1 1 0.33 movdqu %xmm5, %xmm0
44 # CHECK: Register File statistics:
45 # CHECK-NEXT: Total number of mappings created: 27
46 # CHECK-NEXT: Max number of mappings used: 21
49 # CHECK-NEXT: [0] - SBDivider
50 # CHECK-NEXT: [1] - SBFPDivider
51 # CHECK-NEXT: [2] - SBPort0
52 # CHECK-NEXT: [3] - SBPort1
53 # CHECK-NEXT: [4] - SBPort4
54 # CHECK-NEXT: [5] - SBPort5
55 # CHECK-NEXT: [6.0] - SBPort23
56 # CHECK-NEXT: [6.1] - SBPort23
58 # CHECK: Resource pressure per iteration:
59 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
60 # CHECK-NEXT: - - 1.67 1.67 - 4.67 - -
62 # CHECK: Resource pressure by instruction:
63 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
64 # CHECK-NEXT: - - - 0.67 - 0.33 - - pxor %mm0, %mm0
65 # CHECK-NEXT: - - 1.00 - - - - - movq %mm0, %mm1
66 # CHECK-NEXT: - - - - - - - - xorps %xmm0, %xmm0
67 # CHECK-NEXT: - - - - - 1.00 - - movaps %xmm0, %xmm1
68 # CHECK-NEXT: - - - - - 1.00 - - movups %xmm1, %xmm2
69 # CHECK-NEXT: - - - - - 1.00 - - movapd %xmm2, %xmm3
70 # CHECK-NEXT: - - - - - 1.00 - - movupd %xmm3, %xmm4
71 # CHECK-NEXT: - - - 1.00 - - - - movdqa %xmm4, %xmm5
72 # CHECK-NEXT: - - 0.67 - - 0.33 - - movdqu %xmm5, %xmm0
74 # CHECK: Timeline view:
75 # CHECK-NEXT: 0123456789
76 # CHECK-NEXT: Index 0123456789 01
78 # CHECK: [0,0] DeER . . . .. pxor %mm0, %mm0
79 # CHECK-NEXT: [0,1] D=eER. . . .. movq %mm0, %mm1
80 # CHECK-NEXT: [0,2] D---R. . . .. xorps %xmm0, %xmm0
81 # CHECK-NEXT: [0,3] D=eER. . . .. movaps %xmm0, %xmm1
82 # CHECK-NEXT: [0,4] .D=eER . . .. movups %xmm1, %xmm2
83 # CHECK-NEXT: [0,5] .D==eER . . .. movapd %xmm2, %xmm3
84 # CHECK-NEXT: [0,6] .D===eER . . .. movupd %xmm3, %xmm4
85 # CHECK-NEXT: [0,7] .D====eER . . .. movdqa %xmm4, %xmm5
86 # CHECK-NEXT: [0,8] . D====eER. . .. movdqu %xmm5, %xmm0
87 # CHECK-NEXT: [1,0] . DeE----R. . .. pxor %mm0, %mm0
88 # CHECK-NEXT: [1,1] . D=eE---R. . .. movq %mm0, %mm1
89 # CHECK-NEXT: [1,2] . D=====ER. . .. xorps %xmm0, %xmm0
90 # CHECK-NEXT: [1,3] . D====eER . .. movaps %xmm0, %xmm1
91 # CHECK-NEXT: [1,4] . D=====eER . .. movups %xmm1, %xmm2
92 # CHECK-NEXT: [1,5] . D======eER . .. movapd %xmm2, %xmm3
93 # CHECK-NEXT: [1,6] . D=======eER . .. movupd %xmm3, %xmm4
94 # CHECK-NEXT: [1,7] . D=======eER. .. movdqa %xmm4, %xmm5
95 # CHECK-NEXT: [1,8] . D========eER .. movdqu %xmm5, %xmm0
96 # CHECK-NEXT: [2,0] . DeE--------R .. pxor %mm0, %mm0
97 # CHECK-NEXT: [2,1] . D=eE-------R .. movq %mm0, %mm1
98 # CHECK-NEXT: [2,2] . D========ER .. xorps %xmm0, %xmm0
99 # CHECK-NEXT: [2,3] . D========eER .. movaps %xmm0, %xmm1
100 # CHECK-NEXT: [2,4] . D=========eER .. movups %xmm1, %xmm2
101 # CHECK-NEXT: [2,5] . D==========eER .. movapd %xmm2, %xmm3
102 # CHECK-NEXT: [2,6] . .D==========eER.. movupd %xmm3, %xmm4
103 # CHECK-NEXT: [2,7] . .D===========eER. movdqa %xmm4, %xmm5
104 # CHECK-NEXT: [2,8] . .D============eER movdqu %xmm5, %xmm0
106 # CHECK: Average Wait times (based on the timeline view):
107 # CHECK-NEXT: [0]: Executions
108 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
109 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
110 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
112 # CHECK: [0] [1] [2] [3]
113 # CHECK-NEXT: 0. 3 1.0 1.0 4.0 pxor %mm0, %mm0
114 # CHECK-NEXT: 1. 3 2.0 0.0 3.3 movq %mm0, %mm1
115 # CHECK-NEXT: 2. 3 5.0 0.0 1.0 xorps %xmm0, %xmm0
116 # CHECK-NEXT: 3. 3 5.3 0.7 0.0 movaps %xmm0, %xmm1
117 # CHECK-NEXT: 4. 3 6.0 0.0 0.0 movups %xmm1, %xmm2
118 # CHECK-NEXT: 5. 3 7.0 0.0 0.0 movapd %xmm2, %xmm3
119 # CHECK-NEXT: 6. 3 7.7 0.0 0.0 movupd %xmm3, %xmm4
120 # CHECK-NEXT: 7. 3 8.3 0.0 0.0 movdqa %xmm4, %xmm5
121 # CHECK-NEXT: 8. 3 9.0 0.0 0.0 movdqu %xmm5, %xmm0
122 # CHECK-NEXT: 3 5.7 0.2 0.9 <total>