1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -timeline -timeline-max-iterations=1 -bottleneck-analysis < %s | FileCheck %s
9 # CHECK: Iterations: 100
10 # CHECK-NEXT: Instructions: 400
11 # CHECK-NEXT: Total Cycles: 403
12 # CHECK-NEXT: Total uOps: 400
14 # CHECK: Dispatch Width: 2
15 # CHECK-NEXT: uOps Per Cycle: 0.99
16 # CHECK-NEXT: IPC: 0.99
17 # CHECK-NEXT: Block RThroughput: 2.0
19 # CHECK: Cycles with backend pressure increase [ 94.04% ]
20 # CHECK-NEXT: Throughput Bottlenecks:
21 # CHECK-NEXT: Resource Pressure [ 0.00% ]
22 # CHECK-NEXT: Data Dependencies: [ 94.04% ]
23 # CHECK-NEXT: - Register Dependencies [ 94.04% ]
24 # CHECK-NEXT: - Memory Dependencies [ 0.00% ]
26 # CHECK: Critical sequence based on the simulation:
28 # CHECK: Instruction Dependency Information
29 # CHECK-NEXT: +----< 3. addl %edx, %eax
31 # CHECK-NEXT: | < loop carried >
33 # CHECK-NEXT: +----> 0. addl %eax, %ebx ## REGISTER dependency: %eax
34 # CHECK-NEXT: +----> 1. addl %ebx, %ecx ## REGISTER dependency: %ebx
35 # CHECK-NEXT: +----> 2. addl %ecx, %edx ## REGISTER dependency: %ecx
36 # CHECK-NEXT: +----> 3. addl %edx, %eax ## REGISTER dependency: %edx
38 # CHECK-NEXT: | < loop carried >
40 # CHECK-NEXT: +----> 0. addl %eax, %ebx ## REGISTER dependency: %eax
42 # CHECK: Instruction Info:
43 # CHECK-NEXT: [1]: #uOps
44 # CHECK-NEXT: [2]: Latency
45 # CHECK-NEXT: [3]: RThroughput
46 # CHECK-NEXT: [4]: MayLoad
47 # CHECK-NEXT: [5]: MayStore
48 # CHECK-NEXT: [6]: HasSideEffects (U)
50 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
51 # CHECK-NEXT: 1 1 0.50 addl %eax, %ebx
52 # CHECK-NEXT: 1 1 0.50 addl %ebx, %ecx
53 # CHECK-NEXT: 1 1 0.50 addl %ecx, %edx
54 # CHECK-NEXT: 1 1 0.50 addl %edx, %eax
57 # CHECK-NEXT: [0] - JALU0
58 # CHECK-NEXT: [1] - JALU1
59 # CHECK-NEXT: [2] - JDiv
60 # CHECK-NEXT: [3] - JFPA
61 # CHECK-NEXT: [4] - JFPM
62 # CHECK-NEXT: [5] - JFPU0
63 # CHECK-NEXT: [6] - JFPU1
64 # CHECK-NEXT: [7] - JLAGU
65 # CHECK-NEXT: [8] - JMul
66 # CHECK-NEXT: [9] - JSAGU
67 # CHECK-NEXT: [10] - JSTC
68 # CHECK-NEXT: [11] - JVALU0
69 # CHECK-NEXT: [12] - JVALU1
70 # CHECK-NEXT: [13] - JVIMUL
72 # CHECK: Resource pressure per iteration:
73 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
74 # CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - -
76 # CHECK: Resource pressure by instruction:
77 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
78 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - addl %eax, %ebx
79 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - addl %ebx, %ecx
80 # CHECK-NEXT: - 1.00 - - - - - - - - - - - - addl %ecx, %edx
81 # CHECK-NEXT: 1.00 - - - - - - - - - - - - - addl %edx, %eax
83 # CHECK: Timeline view:
84 # CHECK-NEXT: Index 0123456
86 # CHECK: [0,0] DeER .. addl %eax, %ebx
87 # CHECK-NEXT: [0,1] D=eER.. addl %ebx, %ecx
88 # CHECK-NEXT: [0,2] .D=eER. addl %ecx, %edx
89 # CHECK-NEXT: [0,3] .D==eER addl %edx, %eax
91 # CHECK: Average Wait times (based on the timeline view):
92 # CHECK-NEXT: [0]: Executions
93 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
94 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
95 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
97 # CHECK: [0] [1] [2] [3]
98 # CHECK-NEXT: 0. 1 1.0 1.0 0.0 addl %eax, %ebx
99 # CHECK-NEXT: 1. 1 2.0 0.0 0.0 addl %ebx, %ecx
100 # CHECK-NEXT: 2. 1 2.0 0.0 0.0 addl %ecx, %edx
101 # CHECK-NEXT: 3. 1 3.0 0.0 0.0 addl %edx, %eax