1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -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: 28
10 # CHECK-NEXT: Total uOps: 10
12 # CHECK: Dispatch Width: 2
13 # CHECK-NEXT: uOps Per Cycle: 0.36
14 # CHECK-NEXT: IPC: 0.36
15 # CHECK-NEXT: Block RThroughput: 1.0
17 # CHECK: Dynamic Dispatch Stall Cycles:
18 # CHECK-NEXT: RAT - Register unavailable: 13 (46.4%)
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, 20 (71.4%)
28 # CHECK-NEXT: 1, 6 (21.4%)
29 # CHECK-NEXT: 2, 2 (7.1%)
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 -- JFpuPRF:
36 # CHECK-NEXT: Number of physical registers: 72
37 # CHECK-NEXT: Total number of mappings created: 10
38 # CHECK-NEXT: Max number of mappings used: 5
40 # CHECK: * Register File #2 -- JIntegerPRF:
41 # CHECK-NEXT: Number of physical registers: 64
42 # CHECK-NEXT: Total number of mappings created: 0
43 # CHECK-NEXT: Max number of mappings used: 0
46 # CHECK-NEXT: [0] - JALU0
47 # CHECK-NEXT: [1] - JALU1
48 # CHECK-NEXT: [2] - JDiv
49 # CHECK-NEXT: [3] - JFPA
50 # CHECK-NEXT: [4] - JFPM
51 # CHECK-NEXT: [5] - JFPU0
52 # CHECK-NEXT: [6] - JFPU1
53 # CHECK-NEXT: [7] - JLAGU
54 # CHECK-NEXT: [8] - JMul
55 # CHECK-NEXT: [9] - JSAGU
56 # CHECK-NEXT: [10] - JSTC
57 # CHECK-NEXT: [11] - JVALU0
58 # CHECK-NEXT: [12] - JVALU1
59 # CHECK-NEXT: [13] - JVIMUL
61 # CHECK: Resource pressure per iteration:
62 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
63 # CHECK-NEXT: - - - 1.00 1.00 1.00 1.00 - - - - - - -
65 # CHECK: Resource pressure by instruction:
66 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
67 # CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - vaddps %xmm0, %xmm0, %xmm0
68 # CHECK-NEXT: - - - - 1.00 - 1.00 - - - - - - - vmulps %xmm0, %xmm0, %xmm0
70 # CHECK: Timeline view:
71 # CHECK-NEXT: 0123456789
72 # CHECK-NEXT: Index 0123456789 01234567
74 # CHECK: [0,0] DeeeER . . . . . vaddps %xmm0, %xmm0, %xmm0
75 # CHECK-NEXT: [0,1] D===eeER . . . . . vmulps %xmm0, %xmm0, %xmm0
76 # CHECK-NEXT: [1,0] .D====eeeER . . . . vaddps %xmm0, %xmm0, %xmm0
77 # CHECK-NEXT: [1,1] .D=======eeER . . . . vmulps %xmm0, %xmm0, %xmm0
78 # CHECK-NEXT: [2,0] . D========eeeER . . . vaddps %xmm0, %xmm0, %xmm0
79 # CHECK-NEXT: [2,1] . D========eeER . . . vmulps %xmm0, %xmm0, %xmm0
80 # CHECK-NEXT: [3,0] . . D========eeeER . . vaddps %xmm0, %xmm0, %xmm0
81 # CHECK-NEXT: [3,1] . . D========eeER . . vmulps %xmm0, %xmm0, %xmm0
82 # CHECK-NEXT: [4,0] . . . D========eeeER . vaddps %xmm0, %xmm0, %xmm0
83 # CHECK-NEXT: [4,1] . . . D========eeER vmulps %xmm0, %xmm0, %xmm0
85 # CHECK: Average Wait times (based on the timeline view):
86 # CHECK-NEXT: [0]: Executions
87 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
88 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
89 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
91 # CHECK: [0] [1] [2] [3]
92 # CHECK-NEXT: 0. 5 6.6 0.2 0.0 vaddps %xmm0, %xmm0, %xmm0
93 # CHECK-NEXT: 1. 5 7.8 0.0 0.0 vmulps %xmm0, %xmm0, %xmm0
94 # CHECK-NEXT: 5 7.2 0.1 0.0 <total>