1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -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: 0
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, 23 (82.1%)
28 # CHECK-NEXT: 2, 5 (17.9%)
30 # CHECK: Register File statistics:
31 # CHECK-NEXT: Total number of mappings created: 10
32 # CHECK-NEXT: Max number of mappings used: 10
34 # CHECK: * Register File #1 -- JFpuPRF:
35 # CHECK-NEXT: Number of physical registers: 72
36 # CHECK-NEXT: Total number of mappings created: 10
37 # CHECK-NEXT: Max number of mappings used: 10
39 # CHECK: * Register File #2 -- JIntegerPRF:
40 # CHECK-NEXT: Number of physical registers: 64
41 # CHECK-NEXT: Total number of mappings created: 0
42 # CHECK-NEXT: Max number of mappings used: 0
45 # CHECK-NEXT: [0] - JALU0
46 # CHECK-NEXT: [1] - JALU1
47 # CHECK-NEXT: [2] - JDiv
48 # CHECK-NEXT: [3] - JFPA
49 # CHECK-NEXT: [4] - JFPM
50 # CHECK-NEXT: [5] - JFPU0
51 # CHECK-NEXT: [6] - JFPU1
52 # CHECK-NEXT: [7] - JLAGU
53 # CHECK-NEXT: [8] - JMul
54 # CHECK-NEXT: [9] - JSAGU
55 # CHECK-NEXT: [10] - JSTC
56 # CHECK-NEXT: [11] - JVALU0
57 # CHECK-NEXT: [12] - JVALU1
58 # CHECK-NEXT: [13] - JVIMUL
60 # CHECK: Resource pressure per iteration:
61 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
62 # CHECK-NEXT: - - - 1.00 1.00 1.00 1.00 - - - - - - -
64 # CHECK: Resource pressure by instruction:
65 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
66 # CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - vaddps %xmm0, %xmm0, %xmm0
67 # CHECK-NEXT: - - - - 1.00 - 1.00 - - - - - - - vmulps %xmm0, %xmm0, %xmm0
69 # CHECK: Timeline view:
70 # CHECK-NEXT: 0123456789
71 # CHECK-NEXT: Index 0123456789 01234567
73 # CHECK: [0,0] DeeeER . . . . . vaddps %xmm0, %xmm0, %xmm0
74 # CHECK-NEXT: [0,1] D===eeER . . . . . vmulps %xmm0, %xmm0, %xmm0
75 # CHECK-NEXT: [1,0] .D====eeeER . . . . vaddps %xmm0, %xmm0, %xmm0
76 # CHECK-NEXT: [1,1] .D=======eeER . . . . vmulps %xmm0, %xmm0, %xmm0
77 # CHECK-NEXT: [2,0] . D========eeeER . . . vaddps %xmm0, %xmm0, %xmm0
78 # CHECK-NEXT: [2,1] . D===========eeER . . . vmulps %xmm0, %xmm0, %xmm0
79 # CHECK-NEXT: [3,0] . D============eeeER . . vaddps %xmm0, %xmm0, %xmm0
80 # CHECK-NEXT: [3,1] . D===============eeER . . vmulps %xmm0, %xmm0, %xmm0
81 # CHECK-NEXT: [4,0] . D================eeeER . vaddps %xmm0, %xmm0, %xmm0
82 # CHECK-NEXT: [4,1] . D===================eeER vmulps %xmm0, %xmm0, %xmm0
84 # CHECK: Average Wait times (based on the timeline view):
85 # CHECK-NEXT: [0]: Executions
86 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
87 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
88 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
90 # CHECK: [0] [1] [2] [3]
91 # CHECK-NEXT: 0. 5 9.0 0.2 0.0 vaddps %xmm0, %xmm0, %xmm0
92 # CHECK-NEXT: 1. 5 12.0 0.0 0.0 vmulps %xmm0, %xmm0, %xmm0