[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / llvm-mca / X86 / Barcelona / dependency-breaking-pcmpgt.s
blobceb8c52e3ad801381d2c0f906701d69c9c1b16fd
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 -timeline -timeline-max-iterations=3 -iterations=1500 < %s | FileCheck %s
4 # All of the vector packed compares from this test are zero idioms. These zero
5 # idioms are all detected and removed by the register renamer. That means, no
6 # uOp is executed, and there is no RAW dependency for any of the packed
7 # compares.
9 pcmpgtb %mm0, %mm0
10 pcmpgtd %mm0, %mm0
11 pcmpgtw %mm0, %mm0
13 pcmpgtb %xmm0, %xmm0
14 pcmpgtd %xmm0, %xmm0
15 pcmpgtq %xmm0, %xmm0
16 pcmpgtw %xmm0, %xmm0
18 # CHECK: Iterations: 1500
19 # CHECK-NEXT: Instructions: 10500
20 # CHECK-NEXT: Total Cycles: 13503
21 # CHECK-NEXT: Total uOps: 10500
23 # CHECK: Dispatch Width: 4
24 # CHECK-NEXT: uOps Per Cycle: 0.78
25 # CHECK-NEXT: IPC: 0.78
26 # CHECK-NEXT: Block RThroughput: 3.0
28 # CHECK: Instruction Info:
29 # CHECK-NEXT: [1]: #uOps
30 # CHECK-NEXT: [2]: Latency
31 # CHECK-NEXT: [3]: RThroughput
32 # CHECK-NEXT: [4]: MayLoad
33 # CHECK-NEXT: [5]: MayStore
34 # CHECK-NEXT: [6]: HasSideEffects (U)
36 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
37 # CHECK-NEXT: 1 3 1.00 pcmpgtb %mm0, %mm0
38 # CHECK-NEXT: 1 3 1.00 pcmpgtd %mm0, %mm0
39 # CHECK-NEXT: 1 3 1.00 pcmpgtw %mm0, %mm0
40 # CHECK-NEXT: 1 0 0.25 pcmpgtb %xmm0, %xmm0
41 # CHECK-NEXT: 1 0 0.25 pcmpgtd %xmm0, %xmm0
42 # CHECK-NEXT: 1 0 0.25 pcmpgtq %xmm0, %xmm0
43 # CHECK-NEXT: 1 0 0.25 pcmpgtw %xmm0, %xmm0
45 # CHECK: Resources:
46 # CHECK-NEXT: [0] - SBDivider
47 # CHECK-NEXT: [1] - SBFPDivider
48 # CHECK-NEXT: [2] - SBPort0
49 # CHECK-NEXT: [3] - SBPort1
50 # CHECK-NEXT: [4] - SBPort4
51 # CHECK-NEXT: [5] - SBPort5
52 # CHECK-NEXT: [6.0] - SBPort23
53 # CHECK-NEXT: [6.1] - SBPort23
55 # CHECK: Resource pressure per iteration:
56 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1]
57 # CHECK-NEXT: - - - 3.00 - - - -
59 # CHECK: Resource pressure by instruction:
60 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6.0] [6.1] Instructions:
61 # CHECK-NEXT: - - - 1.00 - - - - pcmpgtb %mm0, %mm0
62 # CHECK-NEXT: - - - 1.00 - - - - pcmpgtd %mm0, %mm0
63 # CHECK-NEXT: - - - 1.00 - - - - pcmpgtw %mm0, %mm0
64 # CHECK-NEXT: - - - - - - - - pcmpgtb %xmm0, %xmm0
65 # CHECK-NEXT: - - - - - - - - pcmpgtd %xmm0, %xmm0
66 # CHECK-NEXT: - - - - - - - - pcmpgtq %xmm0, %xmm0
67 # CHECK-NEXT: - - - - - - - - pcmpgtw %xmm0, %xmm0
69 # CHECK: Timeline view:
70 # CHECK-NEXT: 0123456789
71 # CHECK-NEXT: Index 0123456789 0123456789
73 # CHECK: [0,0] DeeeER . . . . . pcmpgtb %mm0, %mm0
74 # CHECK-NEXT: [0,1] D===eeeER . . . . . pcmpgtd %mm0, %mm0
75 # CHECK-NEXT: [0,2] D======eeeER . . . . pcmpgtw %mm0, %mm0
76 # CHECK-NEXT: [0,3] D----------R . . . . pcmpgtb %xmm0, %xmm0
77 # CHECK-NEXT: [0,4] .D---------R . . . . pcmpgtd %xmm0, %xmm0
78 # CHECK-NEXT: [0,5] .D---------R . . . . pcmpgtq %xmm0, %xmm0
79 # CHECK-NEXT: [0,6] .D---------R . . . . pcmpgtw %xmm0, %xmm0
80 # CHECK-NEXT: [1,0] .D========eeeER. . . . pcmpgtb %mm0, %mm0
81 # CHECK-NEXT: [1,1] . D==========eeeER . . . pcmpgtd %mm0, %mm0
82 # CHECK-NEXT: [1,2] . D=============eeeER . . pcmpgtw %mm0, %mm0
83 # CHECK-NEXT: [1,3] . D-----------------R . . pcmpgtb %xmm0, %xmm0
84 # CHECK-NEXT: [1,4] . D-----------------R . . pcmpgtd %xmm0, %xmm0
85 # CHECK-NEXT: [1,5] . D----------------R . . pcmpgtq %xmm0, %xmm0
86 # CHECK-NEXT: [1,6] . D----------------R . . pcmpgtw %xmm0, %xmm0
87 # CHECK-NEXT: [2,0] . D===============eeeER . . pcmpgtb %mm0, %mm0
88 # CHECK-NEXT: [2,1] . D==================eeeER . pcmpgtd %mm0, %mm0
89 # CHECK-NEXT: [2,2] . D====================eeeER pcmpgtw %mm0, %mm0
90 # CHECK-NEXT: [2,3] . D------------------------R pcmpgtb %xmm0, %xmm0
91 # CHECK-NEXT: [2,4] . D------------------------R pcmpgtd %xmm0, %xmm0
92 # CHECK-NEXT: [2,5] . D------------------------R pcmpgtq %xmm0, %xmm0
93 # CHECK-NEXT: [2,6] . D-----------------------R pcmpgtw %xmm0, %xmm0
95 # CHECK: Average Wait times (based on the timeline view):
96 # CHECK-NEXT: [0]: Executions
97 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
98 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
99 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
101 # CHECK: [0] [1] [2] [3]
102 # CHECK-NEXT: 0. 3 8.7 0.3 0.0 pcmpgtb %mm0, %mm0
103 # CHECK-NEXT: 1. 3 11.3 0.0 0.0 pcmpgtd %mm0, %mm0
104 # CHECK-NEXT: 2. 3 14.0 0.0 0.0 pcmpgtw %mm0, %mm0
105 # CHECK-NEXT: 3. 3 0.0 0.0 17.0 pcmpgtb %xmm0, %xmm0
106 # CHECK-NEXT: 4. 3 0.0 0.0 16.7 pcmpgtd %xmm0, %xmm0
107 # CHECK-NEXT: 5. 3 0.0 0.0 16.3 pcmpgtq %xmm0, %xmm0
108 # CHECK-NEXT: 6. 3 0.0 0.0 16.0 pcmpgtw %xmm0, %xmm0