[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-mca / X86 / Znver1 / partial-reg-update-6.s
blob69637932c31f479ed00b7418ec072a41ce4ac3b6
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=znver1 -iterations=1500 -timeline -timeline-max-iterations=4 < %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: 10503
16 # CHECK-NEXT: Total uOps: 7500
18 # CHECK: Dispatch Width: 4
19 # CHECK-NEXT: uOps Per Cycle: 0.71
20 # CHECK-NEXT: IPC: 0.43
21 # CHECK-NEXT: Block RThroughput: 1.3
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 6 0.50 * lzcntw (%rsp), %cx
34 # CHECK-NEXT: 2 6 0.50 * lzcntw 2(%rsp), %cx
36 # CHECK: Resources:
37 # CHECK-NEXT: [0] - ZnAGU0
38 # CHECK-NEXT: [1] - ZnAGU1
39 # CHECK-NEXT: [2] - ZnALU0
40 # CHECK-NEXT: [3] - ZnALU1
41 # CHECK-NEXT: [4] - ZnALU2
42 # CHECK-NEXT: [5] - ZnALU3
43 # CHECK-NEXT: [6] - ZnDivider
44 # CHECK-NEXT: [7] - ZnFPU0
45 # CHECK-NEXT: [8] - ZnFPU1
46 # CHECK-NEXT: [9] - ZnFPU2
47 # CHECK-NEXT: [10] - ZnFPU3
48 # CHECK-NEXT: [11] - ZnMultiplier
50 # CHECK: Resource pressure per iteration:
51 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
52 # CHECK-NEXT: 1.00 1.00 0.67 1.00 0.67 0.67 - - - - - 1.00
54 # CHECK: Resource pressure by instruction:
55 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] Instructions:
56 # CHECK-NEXT: - - - 1.00 - - - - - - - 1.00 imull %edx, %ecx
57 # CHECK-NEXT: - 1.00 0.33 - 0.33 0.33 - - - - - - lzcntw (%rsp), %cx
58 # CHECK-NEXT: 1.00 - 0.33 - 0.33 0.33 - - - - - - lzcntw 2(%rsp), %cx
60 # CHECK: Timeline view:
61 # CHECK-NEXT: 0123456789 0
62 # CHECK-NEXT: Index 0123456789 0123456789
64 # CHECK: [0,0] DeeeER . . . . . imull %edx, %ecx
65 # CHECK-NEXT: [0,1] DeeeeeeER . . . . . lzcntw (%rsp), %cx
66 # CHECK-NEXT: [0,2] .DeeeeeeER. . . . . lzcntw 2(%rsp), %cx
67 # CHECK-NEXT: [1,0] .D======eeeER . . . . imull %edx, %ecx
68 # CHECK-NEXT: [1,1] . D=====eeeeeeER . . . lzcntw (%rsp), %cx
69 # CHECK-NEXT: [1,2] . D======eeeeeeER . . . lzcntw 2(%rsp), %cx
70 # CHECK-NEXT: [2,0] . D===========eeeER. . . imull %edx, %ecx
71 # CHECK-NEXT: [2,1] . D===========eeeeeeER . . lzcntw (%rsp), %cx
72 # CHECK-NEXT: [2,2] . D===========eeeeeeER . . lzcntw 2(%rsp), %cx
73 # CHECK-NEXT: [3,0] . D=================eeeER . imull %edx, %ecx
74 # CHECK-NEXT: [3,1] . D================eeeeeeER. lzcntw (%rsp), %cx
75 # CHECK-NEXT: [3,2] . D=================eeeeeeER lzcntw 2(%rsp), %cx
77 # CHECK: Average Wait times (based on the timeline view):
78 # CHECK-NEXT: [0]: Executions
79 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
80 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
81 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
83 # CHECK: [0] [1] [2] [3]
84 # CHECK-NEXT: 0. 4 9.5 0.3 0.0 imull %edx, %ecx
85 # CHECK-NEXT: 1. 4 9.0 0.0 0.0 lzcntw (%rsp), %cx
86 # CHECK-NEXT: 2. 4 9.5 0.0 0.0 lzcntw 2(%rsp), %cx