[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-mca / X86 / Barcelona / partial-reg-update-6.s
blob18d1f5a215e8f4ab0268b8ef1e0705f3de0676d7
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -iterations=1500 -timeline -timeline-max-iterations=3 < %s | FileCheck %s
4 # Each lzcnt has a false dependency on %ecx; the first lzcnt has to wait on the
5 # imul. However, the folded load can start immediately.
6 # The last lzcnt has a false dependency on %cx. However, even in this case, the
7 # folded load can start immediately.
9 imul %edx, %ecx
10 lzcnt (%rsp), %cx
11 lzcnt 2(%rsp), %cx
13 # CHECK: Iterations: 1500
14 # CHECK-NEXT: Instructions: 4500
15 # CHECK-NEXT: Total Cycles: 4510
16 # CHECK-NEXT: Total uOps: 7500
18 # CHECK: Dispatch Width: 4
19 # CHECK-NEXT: uOps Per Cycle: 1.66
20 # CHECK-NEXT: IPC: 1.00
21 # CHECK-NEXT: Block RThroughput: 3.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 3 1.00 imull %edx, %ecx
33 # CHECK-NEXT: 2 8 1.00 * lzcntw (%rsp), %cx
34 # CHECK-NEXT: 2 8 1.00 * lzcntw 2(%rsp), %cx
36 # CHECK: Resources:
37 # CHECK-NEXT: [0] - SBDivider
38 # CHECK-NEXT: [1] - SBFPDivider
39 # CHECK-NEXT: [2] - SBPort0
40 # CHECK-NEXT: [3] - SBPort1
41 # CHECK-NEXT: [4] - SBPort4
42 # CHECK-NEXT: [5] - SBPort5
43 # CHECK-NEXT: [6.0] - SBPort23
44 # CHECK-NEXT: [6.1] - SBPort23
46 # CHECK: Resource pressure per iteration:
47 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
48 # CHECK-NEXT: - - - 3.00 - - 1.00 1.00
50 # CHECK: Resource pressure by instruction:
51 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
52 # CHECK-NEXT: - - - 1.00 - - - - imull %edx, %ecx
53 # CHECK-NEXT: - - - 1.00 - - - 1.00 lzcntw (%rsp), %cx
54 # CHECK-NEXT: - - - 1.00 - - 1.00 - lzcntw 2(%rsp), %cx
56 # CHECK: Timeline view:
57 # CHECK-NEXT: 012345678
58 # CHECK-NEXT: Index 0123456789
60 # CHECK: [0,0] DeeeER . . . imull %edx, %ecx
61 # CHECK-NEXT: [0,1] D=eeeeeeeeER . . lzcntw (%rsp), %cx
62 # CHECK-NEXT: [0,2] .D=eeeeeeeeER . . lzcntw 2(%rsp), %cx
63 # CHECK-NEXT: [1,0] .D=========eeeER . imull %edx, %ecx
64 # CHECK-NEXT: [1,1] . D=eeeeeeeeE--R . lzcntw (%rsp), %cx
65 # CHECK-NEXT: [1,2] . D==eeeeeeeeE-R . lzcntw 2(%rsp), %cx
66 # CHECK-NEXT: [2,0] . D==========eeeER imull %edx, %ecx
67 # CHECK-NEXT: [2,1] . D==eeeeeeeeE---R lzcntw (%rsp), %cx
68 # CHECK-NEXT: [2,2] . D==eeeeeeeeE--R lzcntw 2(%rsp), %cx
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 7.3 0.3 0.0 imull %edx, %ecx
78 # CHECK-NEXT: 1. 3 2.3 2.3 1.7 lzcntw (%rsp), %cx
79 # CHECK-NEXT: 2. 3 2.7 2.7 1.0 lzcntw 2(%rsp), %cx