[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-mca / X86 / BtVer2 / dependency-breaking-sbb-1.s
blobb2bd7169c51801d8b27bba380f255be55fa290c5
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=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.
10 sbb %edx, %edx
11 sbb %eax, %eax
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: 2
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
35 # CHECK: Resources:
36 # CHECK-NEXT: [0] - JALU0
37 # CHECK-NEXT: [1] - JALU1
38 # CHECK-NEXT: [2] - JDiv
39 # CHECK-NEXT: [3] - JFPA
40 # CHECK-NEXT: [4] - JFPM
41 # CHECK-NEXT: [5] - JFPU0
42 # CHECK-NEXT: [6] - JFPU1
43 # CHECK-NEXT: [7] - JLAGU
44 # CHECK-NEXT: [8] - JMul
45 # CHECK-NEXT: [9] - JSAGU
46 # CHECK-NEXT: [10] - JSTC
47 # CHECK-NEXT: [11] - JVALU0
48 # CHECK-NEXT: [12] - JVALU1
49 # CHECK-NEXT: [13] - JVIMUL
51 # CHECK: Resource pressure per iteration:
52 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
53 # CHECK-NEXT: 2.00 2.00 - - - - - - - - - - - -
55 # CHECK: Resource pressure by instruction:
56 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
57 # CHECK-NEXT: - 2.00 - - - - - - - - - - - - sbbl %edx, %edx
58 # CHECK-NEXT: 2.00 - - - - - - - - - - - - - sbbl %eax, %eax
60 # CHECK: Timeline view:
61 # CHECK-NEXT: Index 012345678
63 # CHECK: [0,0] DeER . . sbbl %edx, %edx
64 # CHECK-NEXT: [0,1] D=eER. . sbbl %eax, %eax
65 # CHECK-NEXT: [1,0] .D=eER . sbbl %edx, %edx
66 # CHECK-NEXT: [1,1] .D==eER . sbbl %eax, %eax
67 # CHECK-NEXT: [2,0] . D==eER. sbbl %edx, %edx
68 # CHECK-NEXT: [2,1] . D===eER sbbl %eax, %eax
70 # CHECK: Average Wait times (based on the timeline view):
71 # CHECK-NEXT: [0]: Executions
72 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
73 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
74 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
76 # CHECK: [0] [1] [2] [3]
77 # CHECK-NEXT: 0. 3 2.0 0.3 0.0 sbbl %edx, %edx
78 # CHECK-NEXT: 1. 3 3.0 0.0 0.0 sbbl %eax, %eax