1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -register-file-size=5 -iterations=5 -instruction-info=false -dispatch-stats -register-file-stats -timeline < %s | FileCheck %s
4 vaddps
%xmm0
, %xmm0
, %xmm0
5 vmulps
%xmm0
, %xmm0
, %xmm0
8 # CHECK-NEXT: Instructions: 10
9 # CHECK-NEXT: Total Cycles: 53
10 # CHECK-NEXT: Total uOps: 10
12 # CHECK: Dispatch Width: 4
13 # CHECK-NEXT: uOps Per Cycle: 0.19
14 # CHECK-NEXT: IPC: 0.19
15 # CHECK-NEXT: Block RThroughput: 1.0
17 # CHECK: Dynamic Dispatch Stall Cycles:
18 # CHECK-NEXT: RAT - Register unavailable: 26 (49.1%)
19 # CHECK-NEXT: RCU - Retire tokens unavailable: 0
20 # CHECK-NEXT: SCHEDQ - Scheduler full: 0
21 # CHECK-NEXT: LQ - Load queue full: 0
22 # CHECK-NEXT: SQ - Store queue full: 0
23 # CHECK-NEXT: GROUP - Static restrictions on the dispatch group: 0
25 # CHECK: Dispatch Logic - number of cycles where we saw N micro opcodes dispatched:
26 # CHECK-NEXT: [# dispatched], [# cycles]
27 # CHECK-NEXT: 0, 46 (86.8%)
28 # CHECK-NEXT: 1, 6 (11.3%)
29 # CHECK-NEXT: 4, 1 (1.9%)
31 # CHECK: Register File statistics:
32 # CHECK-NEXT: Total number of mappings created: 10
33 # CHECK-NEXT: Max number of mappings used: 5
35 # CHECK: * Register File #1 -- PdFpuPRF:
36 # CHECK-NEXT: Number of physical registers: 160
37 # CHECK-NEXT: Total number of mappings created: 10
38 # CHECK-NEXT: Max number of mappings used: 5
40 # CHECK: * Register File #2 -- PdIntegerPRF:
41 # CHECK-NEXT: Number of physical registers: 96
42 # CHECK-NEXT: Total number of mappings created: 0
43 # CHECK-NEXT: Max number of mappings used: 0
46 # CHECK-NEXT: [0.0] - PdAGLU01
47 # CHECK-NEXT: [0.1] - PdAGLU01
48 # CHECK-NEXT: [1] - PdBranch
49 # CHECK-NEXT: [2] - PdCount
50 # CHECK-NEXT: [3] - PdDiv
51 # CHECK-NEXT: [4] - PdEX0
52 # CHECK-NEXT: [5] - PdEX1
53 # CHECK-NEXT: [6] - PdFPCVT
54 # CHECK-NEXT: [7.0] - PdFPFMA
55 # CHECK-NEXT: [7.1] - PdFPFMA
56 # CHECK-NEXT: [8.0] - PdFPMAL
57 # CHECK-NEXT: [8.1] - PdFPMAL
58 # CHECK-NEXT: [9] - PdFPMMA
59 # CHECK-NEXT: [10] - PdFPSTO
60 # CHECK-NEXT: [11] - PdFPU0
61 # CHECK-NEXT: [12] - PdFPU1
62 # CHECK-NEXT: [13] - PdFPU2
63 # CHECK-NEXT: [14] - PdFPU3
64 # CHECK-NEXT: [15] - PdFPXBR
65 # CHECK-NEXT: [16.0] - PdLoad
66 # CHECK-NEXT: [16.1] - PdLoad
67 # CHECK-NEXT: [17] - PdMul
68 # CHECK-NEXT: [18] - PdStore
70 # CHECK: Resource pressure per iteration:
71 # 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]
72 # CHECK-NEXT: - - - - - - - - 1.00 1.00 - - - - 1.00 1.00 - - - - - - -
74 # CHECK: Resource pressure by instruction:
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] Instructions:
76 # CHECK-NEXT: - - - - - - - - - 1.00 - - - - 1.00 - - - - - - - - vaddps %xmm0, %xmm0, %xmm0
77 # CHECK-NEXT: - - - - - - - - 1.00 - - - - - - 1.00 - - - - - - - vmulps %xmm0, %xmm0, %xmm0
79 # CHECK: Timeline view:
80 # CHECK-NEXT: 0123456789 0123456789 012
81 # CHECK-NEXT: Index 0123456789 0123456789 0123456789
83 # CHECK: [0,0] DeeeeeER . . . . . . . . . . vaddps %xmm0, %xmm0, %xmm0
84 # CHECK-NEXT: [0,1] D=====eeeeeER . . . . . . . . . vmulps %xmm0, %xmm0, %xmm0
85 # CHECK-NEXT: [1,0] D==========eeeeeER . . . . . . . . vaddps %xmm0, %xmm0, %xmm0
86 # CHECK-NEXT: [1,1] D===============eeeeeER . . . . . . . vmulps %xmm0, %xmm0, %xmm0
87 # CHECK-NEXT: [2,0] .D===================eeeeeER . . . . . . vaddps %xmm0, %xmm0, %xmm0
88 # CHECK-NEXT: [2,1] . . D==================eeeeeER . . . . . vmulps %xmm0, %xmm0, %xmm0
89 # CHECK-NEXT: [3,0] . . . D==================eeeeeER . . . . vaddps %xmm0, %xmm0, %xmm0
90 # CHECK-NEXT: [3,1] . . . . D==================eeeeeER . . . vmulps %xmm0, %xmm0, %xmm0
91 # CHECK-NEXT: [4,0] . . . . . D==================eeeeeER . . vaddps %xmm0, %xmm0, %xmm0
92 # CHECK-NEXT: [4,1] . . . . . . D==================eeeeeER vmulps %xmm0, %xmm0, %xmm0
94 # CHECK: Average Wait times (based on the timeline view):
95 # CHECK-NEXT: [0]: Executions
96 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
97 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
98 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
100 # CHECK: [0] [1] [2] [3]
101 # CHECK-NEXT: 0. 5 14.0 0.2 0.0 vaddps %xmm0, %xmm0, %xmm0
102 # CHECK-NEXT: 1. 5 15.8 0.0 0.0 vmulps %xmm0, %xmm0, %xmm0
103 # CHECK-NEXT: 5 14.9 0.1 0.0 <total>