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=1000 -timeline < %s | FileCheck %s
8 # CHECK: Iterations: 1000
9 # CHECK-NEXT: Instructions: 3000
10 # CHECK-NEXT: Total Cycles: 3003
11 # CHECK-NEXT: Total uOps: 3000
13 # CHECK: Dispatch Width: 4
14 # CHECK-NEXT: uOps Per Cycle: 1.00
15 # CHECK-NEXT: IPC: 1.00
16 # CHECK-NEXT: Block RThroughput: 3.0
18 # CHECK: Instruction Info:
19 # CHECK-NEXT: [1]: #uOps
20 # CHECK-NEXT: [2]: Latency
21 # CHECK-NEXT: [3]: RThroughput
22 # CHECK-NEXT: [4]: MayLoad
23 # CHECK-NEXT: [5]: MayStore
24 # CHECK-NEXT: [6]: HasSideEffects (U)
26 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
27 # CHECK-NEXT: 1 1 1.00 addl %eax, %ecx
28 # CHECK-NEXT: 1 1 1.00 addl %esi, %eax
29 # CHECK-NEXT: 1 1 1.00 addl %eax, %edx
32 # CHECK-NEXT: [0.0] - PdAGLU01
33 # CHECK-NEXT: [0.1] - PdAGLU01
34 # CHECK-NEXT: [1] - PdBranch
35 # CHECK-NEXT: [2] - PdCount
36 # CHECK-NEXT: [3] - PdDiv
37 # CHECK-NEXT: [4] - PdEX0
38 # CHECK-NEXT: [5] - PdEX1
39 # CHECK-NEXT: [6] - PdFPCVT
40 # CHECK-NEXT: [7.0] - PdFPFMA
41 # CHECK-NEXT: [7.1] - PdFPFMA
42 # CHECK-NEXT: [8.0] - PdFPMAL
43 # CHECK-NEXT: [8.1] - PdFPMAL
44 # CHECK-NEXT: [9] - PdFPMMA
45 # CHECK-NEXT: [10] - PdFPSTO
46 # CHECK-NEXT: [11] - PdFPU0
47 # CHECK-NEXT: [12] - PdFPU1
48 # CHECK-NEXT: [13] - PdFPU2
49 # CHECK-NEXT: [14] - PdFPU3
50 # CHECK-NEXT: [15] - PdFPXBR
51 # CHECK-NEXT: [16.0] - PdLoad
52 # CHECK-NEXT: [16.1] - PdLoad
53 # CHECK-NEXT: [17] - PdMul
54 # CHECK-NEXT: [18] - PdStore
56 # CHECK: Resource pressure per iteration:
57 # 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]
58 # CHECK-NEXT: - - - - - 3.00 3.00 - - - - - - - - - - - - - - - -
60 # CHECK: Resource pressure by instruction:
61 # 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:
62 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - addl %eax, %ecx
63 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - addl %esi, %eax
64 # CHECK-NEXT: - - - - - 1.00 1.00 - - - - - - - - - - - - - - - - addl %eax, %edx
66 # CHECK: Timeline view:
67 # CHECK-NEXT: 0123456789 01
68 # CHECK-NEXT: Index 0123456789 0123456789
70 # CHECK: [0,0] DeER . . . . . .. addl %eax, %ecx
71 # CHECK-NEXT: [0,1] DeER . . . . . .. addl %esi, %eax
72 # CHECK-NEXT: [0,2] D==eER . . . . .. addl %eax, %edx
73 # CHECK-NEXT: [1,0] D====eER . . . . .. addl %eax, %ecx
74 # CHECK-NEXT: [1,1] .D=eE--R . . . . .. addl %esi, %eax
75 # CHECK-NEXT: [1,2] .D===eER . . . . .. addl %eax, %edx
76 # CHECK-NEXT: [2,0] .D=====eER. . . . .. addl %eax, %ecx
77 # CHECK-NEXT: [2,1] .D=====eER. . . . .. addl %esi, %eax
78 # CHECK-NEXT: [2,2] . D======eER . . . .. addl %eax, %edx
79 # CHECK-NEXT: [3,0] . D========eER . . . .. addl %eax, %ecx
80 # CHECK-NEXT: [3,1] . D======eE--R . . . .. addl %esi, %eax
81 # CHECK-NEXT: [3,2] . D========eER . . . .. addl %eax, %edx
82 # CHECK-NEXT: [4,0] . D=========eER . . .. addl %eax, %ecx
83 # CHECK-NEXT: [4,1] . D=========eER . . .. addl %esi, %eax
84 # CHECK-NEXT: [4,2] . D===========eER . . .. addl %eax, %edx
85 # CHECK-NEXT: [5,0] . D=============eER. . .. addl %eax, %ecx
86 # CHECK-NEXT: [5,1] . D==========eE--R. . .. addl %esi, %eax
87 # CHECK-NEXT: [5,2] . D============eER. . .. addl %eax, %edx
88 # CHECK-NEXT: [6,0] . D==============eER . .. addl %eax, %ecx
89 # CHECK-NEXT: [6,1] . D==============eER . .. addl %esi, %eax
90 # CHECK-NEXT: [6,2] . D===============eER . .. addl %eax, %edx
91 # CHECK-NEXT: [7,0] . D=================eER .. addl %eax, %ecx
92 # CHECK-NEXT: [7,1] . D===============eE--R .. addl %esi, %eax
93 # CHECK-NEXT: [7,2] . D=================eER .. addl %eax, %edx
94 # CHECK-NEXT: [8,0] . .D==================eER .. addl %eax, %ecx
95 # CHECK-NEXT: [8,1] . .D==================eER .. addl %esi, %eax
96 # CHECK-NEXT: [8,2] . .D====================eER.. addl %eax, %edx
97 # CHECK-NEXT: [9,0] . .D======================eER addl %eax, %ecx
98 # CHECK-NEXT: [9,1] . . D===================eE--R addl %esi, %eax
99 # CHECK-NEXT: [9,2] . . D=====================eER addl %eax, %edx
101 # CHECK: Average Wait times (based on the timeline view):
102 # CHECK-NEXT: [0]: Executions
103 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
104 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
105 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
107 # CHECK: [0] [1] [2] [3]
108 # CHECK-NEXT: 0. 10 12.0 2.0 0.0 addl %eax, %ecx
109 # CHECK-NEXT: 1. 10 10.7 1.8 1.0 addl %esi, %eax
110 # CHECK-NEXT: 2. 10 12.5 1.0 0.0 addl %eax, %edx