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
10 # CHECK: Iterations: 3
11 # CHECK-NEXT: Instructions: 15
12 # CHECK-NEXT: Total Cycles: 15
13 # CHECK-NEXT: Total uOps: 15
15 # CHECK: Dispatch Width: 4
16 # CHECK-NEXT: uOps Per Cycle: 1.00
17 # CHECK-NEXT: IPC: 1.00
18 # CHECK-NEXT: Block RThroughput: 4.0
20 # CHECK: Instruction Info:
21 # CHECK-NEXT: [1]: #uOps
22 # CHECK-NEXT: [2]: Latency
23 # CHECK-NEXT: [3]: RThroughput
24 # CHECK-NEXT: [4]: MayLoad
25 # CHECK-NEXT: [5]: MayStore
26 # CHECK-NEXT: [6]: HasSideEffects (U)
28 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
29 # CHECK-NEXT: 1 0 0.25 xorl %eax, %eax
30 # CHECK-NEXT: 1 1 1.00 movl %eax, %ebx
31 # CHECK-NEXT: 1 1 1.00 movl %ebx, %ecx
32 # CHECK-NEXT: 1 1 1.00 movl %ecx, %edx
33 # CHECK-NEXT: 1 1 1.00 movl %edx, %eax
35 # CHECK: Register File statistics:
36 # CHECK-NEXT: Total number of mappings created: 12
37 # CHECK-NEXT: Max number of mappings used: 11
39 # CHECK: * Register File #1 -- PdFpuPRF:
40 # CHECK-NEXT: Number of physical registers: 160
41 # CHECK-NEXT: Total number of mappings created: 0
42 # CHECK-NEXT: Max number of mappings used: 0
44 # CHECK: * Register File #2 -- PdIntegerPRF:
45 # CHECK-NEXT: Number of physical registers: 96
46 # CHECK-NEXT: Total number of mappings created: 12
47 # CHECK-NEXT: Max number of mappings used: 11
50 # CHECK-NEXT: [0.0] - PdAGLU01
51 # CHECK-NEXT: [0.1] - PdAGLU01
52 # CHECK-NEXT: [1] - PdBranch
53 # CHECK-NEXT: [2] - PdCount
54 # CHECK-NEXT: [3] - PdDiv
55 # CHECK-NEXT: [4] - PdEX0
56 # CHECK-NEXT: [5] - PdEX1
57 # CHECK-NEXT: [6] - PdFPCVT
58 # CHECK-NEXT: [7.0] - PdFPFMA
59 # CHECK-NEXT: [7.1] - PdFPFMA
60 # CHECK-NEXT: [8.0] - PdFPMAL
61 # CHECK-NEXT: [8.1] - PdFPMAL
62 # CHECK-NEXT: [9] - PdFPMMA
63 # CHECK-NEXT: [10] - PdFPSTO
64 # CHECK-NEXT: [11] - PdFPU0
65 # CHECK-NEXT: [12] - PdFPU1
66 # CHECK-NEXT: [13] - PdFPU2
67 # CHECK-NEXT: [14] - PdFPU3
68 # CHECK-NEXT: [15] - PdFPXBR
69 # CHECK-NEXT: [16.0] - PdLoad
70 # CHECK-NEXT: [16.1] - PdLoad
71 # CHECK-NEXT: [17] - PdMul
72 # CHECK-NEXT: [18] - PdStore
74 # CHECK: Resource pressure per iteration:
75 # 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]
76 # CHECK-NEXT: - - - - - 4.00 4.00 - - - - - - - - - - - - - - - -
78 # CHECK: Resource pressure by instruction:
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] Instructions:
80 # CHECK-NEXT: - - - - - - - - - - - - - - - - - - - - - - - xorl %eax, %eax
81 # CHECK-NEXT: - - - - - - 2.00 - - - - - - - - - - - - - - - - movl %eax, %ebx
82 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - movl %ebx, %ecx
83 # CHECK-NEXT: - - - - - - 2.00 - - - - - - - - - - - - - - - - movl %ecx, %edx
84 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - movl %edx, %eax
86 # CHECK: Timeline view:
88 # CHECK-NEXT: Index 0123456789
90 # CHECK: [0,0] DR . . . xorl %eax, %eax
91 # CHECK-NEXT: [0,1] DeER . . . movl %eax, %ebx
92 # CHECK-NEXT: [0,2] D=eER. . . movl %ebx, %ecx
93 # CHECK-NEXT: [0,3] D==eER . . movl %ecx, %edx
94 # CHECK-NEXT: [0,4] .D==eER . . movl %edx, %eax
95 # CHECK-NEXT: [1,0] .D----R . . xorl %eax, %eax
96 # CHECK-NEXT: [1,1] .D===eER . . movl %eax, %ebx
97 # CHECK-NEXT: [1,2] .D====eER . . movl %ebx, %ecx
98 # CHECK-NEXT: [1,3] . D====eER. . movl %ecx, %edx
99 # CHECK-NEXT: [1,4] . D=====eER . movl %edx, %eax
100 # CHECK-NEXT: [2,0] . D-------R . xorl %eax, %eax
101 # CHECK-NEXT: [2,1] . D======eER . movl %eax, %ebx
102 # CHECK-NEXT: [2,2] . D======eER . movl %ebx, %ecx
103 # CHECK-NEXT: [2,3] . D=======eER. movl %ecx, %edx
104 # CHECK-NEXT: [2,4] . D========eER movl %edx, %eax
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 0.0 0.0 3.7 xorl %eax, %eax
114 # CHECK-NEXT: 1. 3 4.0 4.0 0.0 movl %eax, %ebx
115 # CHECK-NEXT: 2. 3 4.7 0.0 0.0 movl %ebx, %ecx
116 # CHECK-NEXT: 3. 3 5.3 0.0 0.0 movl %ecx, %edx
117 # CHECK-NEXT: 4. 3 6.0 0.0 0.0 movl %edx, %eax
118 # CHECK-NEXT: 3 4.0 0.8 0.7 <total>