1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=bdver2 -timeline -timeline-max-iterations=3 -iterations=1500 < %s | FileCheck %s
4 # perf stat reports an IPC of 1.00 for this code block.
6 # Although both SBB are dependency breaking instructions, there is still an
7 # implicit dependency on EFLAGS which limits the ILP. So, the hardware backend
8 # can only execute one instruction per cycle.
13 # CHECK: Iterations: 1500
14 # CHECK-NEXT: Instructions: 3000
15 # CHECK-NEXT: Total Cycles: 3003
16 # CHECK-NEXT: Total uOps: 3000
18 # CHECK: Dispatch Width: 4
19 # CHECK-NEXT: uOps Per Cycle: 1.00
20 # CHECK-NEXT: IPC: 1.00
21 # CHECK-NEXT: Block RThroughput: 2.0
23 # CHECK: Instruction Info:
24 # CHECK-NEXT: [1]: #uOps
25 # CHECK-NEXT: [2]: Latency
26 # CHECK-NEXT: [3]: RThroughput
27 # CHECK-NEXT: [4]: MayLoad
28 # CHECK-NEXT: [5]: MayStore
29 # CHECK-NEXT: [6]: HasSideEffects (U)
31 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
32 # CHECK-NEXT: 1 1 1.00 sbbl %edx, %edx
33 # CHECK-NEXT: 1 1 1.00 sbbl %eax, %eax
36 # CHECK-NEXT: [0.0] - PdAGLU01
37 # CHECK-NEXT: [0.1] - PdAGLU01
38 # CHECK-NEXT: [1] - PdBranch
39 # CHECK-NEXT: [2] - PdCount
40 # CHECK-NEXT: [3] - PdDiv
41 # CHECK-NEXT: [4] - PdEX0
42 # CHECK-NEXT: [5] - PdEX1
43 # CHECK-NEXT: [6] - PdFPCVT
44 # CHECK-NEXT: [7.0] - PdFPFMA
45 # CHECK-NEXT: [7.1] - PdFPFMA
46 # CHECK-NEXT: [8.0] - PdFPMAL
47 # CHECK-NEXT: [8.1] - PdFPMAL
48 # CHECK-NEXT: [9] - PdFPMMA
49 # CHECK-NEXT: [10] - PdFPSTO
50 # CHECK-NEXT: [11] - PdFPU0
51 # CHECK-NEXT: [12] - PdFPU1
52 # CHECK-NEXT: [13] - PdFPU2
53 # CHECK-NEXT: [14] - PdFPU3
54 # CHECK-NEXT: [15] - PdFPXBR
55 # CHECK-NEXT: [16.0] - PdLoad
56 # CHECK-NEXT: [16.1] - PdLoad
57 # CHECK-NEXT: [17] - PdMul
58 # CHECK-NEXT: [18] - PdStore
60 # CHECK: Resource pressure per iteration:
61 # 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]
62 # CHECK-NEXT: - - - - - 2.00 2.00 - - - - - - - - - - - - - - - -
64 # CHECK: Resource pressure by instruction:
65 # 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:
66 # CHECK-NEXT: - - - - - - 2.00 - - - - - - - - - - - - - - - - sbbl %edx, %edx
67 # CHECK-NEXT: - - - - - 2.00 - - - - - - - - - - - - - - - - - sbbl %eax, %eax
69 # CHECK: Timeline view:
70 # CHECK-NEXT: Index 012345678
72 # CHECK: [0,0] DeER . . sbbl %edx, %edx
73 # CHECK-NEXT: [0,1] D=eER. . sbbl %eax, %eax
74 # CHECK-NEXT: [1,0] D==eER . sbbl %edx, %edx
75 # CHECK-NEXT: [1,1] D===eER . sbbl %eax, %eax
76 # CHECK-NEXT: [2,0] .D===eER. sbbl %edx, %edx
77 # CHECK-NEXT: [2,1] .D====eER sbbl %eax, %eax
79 # CHECK: Average Wait times (based on the timeline view):
80 # CHECK-NEXT: [0]: Executions
81 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
82 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
83 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
85 # CHECK: [0] [1] [2] [3]
86 # CHECK-NEXT: 0. 3 2.7 0.3 0.0 sbbl %edx, %edx
87 # CHECK-NEXT: 1. 3 3.7 0.0 0.0 sbbl %eax, %eax