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=100 -timeline -timeline-max-iterations=1 -bottleneck-analysis < %s | FileCheck %s
4 vhaddps
%xmm0
, %xmm0
, %xmm1
6 # CHECK: Iterations: 100
7 # CHECK-NEXT: Instructions: 100
8 # CHECK-NEXT: Total Cycles: 106
9 # CHECK-NEXT: Total uOps: 100
11 # CHECK: Dispatch Width: 2
12 # CHECK-NEXT: uOps Per Cycle: 0.94
13 # CHECK-NEXT: IPC: 0.94
14 # CHECK-NEXT: Block RThroughput: 1.0
16 # CHECK: Cycles with backend pressure increase [ 76.42% ]
17 # CHECK-NEXT: Throughput Bottlenecks:
18 # CHECK-NEXT: Resource Pressure [ 76.42% ]
19 # CHECK-NEXT: - JFPA [ 76.42% ]
20 # CHECK-NEXT: - JFPU0 [ 76.42% ]
21 # CHECK-NEXT: Data Dependencies: [ 0.00% ]
22 # CHECK-NEXT: - Register Dependencies [ 0.00% ]
23 # CHECK-NEXT: - Memory Dependencies [ 0.00% ]
25 # CHECK: Critical sequence based on the simulation:
27 # CHECK: Instruction Dependency Information
28 # CHECK-NEXT: +----< 0. vhaddps %xmm0, %xmm0, %xmm1
30 # CHECK-NEXT: | < loop carried >
32 # CHECK-NEXT: +----> 0. vhaddps %xmm0, %xmm0, %xmm1 ## RESOURCE interference: JFPA [ probability: 99% ]
34 # CHECK-NEXT: | < loop carried >
36 # CHECK-NEXT: +----> 0. vhaddps %xmm0, %xmm0, %xmm1 ## RESOURCE interference: JFPA [ probability: 99% ]
38 # CHECK: Instruction Info:
39 # CHECK-NEXT: [1]: #uOps
40 # CHECK-NEXT: [2]: Latency
41 # CHECK-NEXT: [3]: RThroughput
42 # CHECK-NEXT: [4]: MayLoad
43 # CHECK-NEXT: [5]: MayStore
44 # CHECK-NEXT: [6]: HasSideEffects (U)
46 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
47 # CHECK-NEXT: 1 4 1.00 vhaddps %xmm0, %xmm0, %xmm1
50 # CHECK-NEXT: [0] - JALU0
51 # CHECK-NEXT: [1] - JALU1
52 # CHECK-NEXT: [2] - JDiv
53 # CHECK-NEXT: [3] - JFPA
54 # CHECK-NEXT: [4] - JFPM
55 # CHECK-NEXT: [5] - JFPU0
56 # CHECK-NEXT: [6] - JFPU1
57 # CHECK-NEXT: [7] - JLAGU
58 # CHECK-NEXT: [8] - JMul
59 # CHECK-NEXT: [9] - JSAGU
60 # CHECK-NEXT: [10] - JSTC
61 # CHECK-NEXT: [11] - JVALU0
62 # CHECK-NEXT: [12] - JVALU1
63 # CHECK-NEXT: [13] - JVIMUL
65 # CHECK: Resource pressure per iteration:
66 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
67 # CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - -
69 # CHECK: Resource pressure by instruction:
70 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
71 # CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - vhaddps %xmm0, %xmm0, %xmm1
73 # CHECK: Timeline view:
74 # CHECK-NEXT: Index 0123456
76 # CHECK: [0,0] DeeeeER vhaddps %xmm0, %xmm0, %xmm1
78 # CHECK: Average Wait times (based on the timeline view):
79 # CHECK-NEXT: [0]: Executions
80 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
81 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
82 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
84 # CHECK: [0] [1] [2] [3]
85 # CHECK-NEXT: 0. 1 1.0 1.0 0.0 vhaddps %xmm0, %xmm0, %xmm1