[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-pcmpgt.s
blobef6faa58eba43c5af1f4b4222b5c419f23cb26e3
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 2.00 for this block of code.
6 # All of the vector packed compares from this test are zero idioms. These zero
7 # idioms are all detected and removed by the register renamer. That means, no
8 # uOp is executed, and there is no RAW dependency for any of the packed
9 # compares.
11 vpcmpgtb %xmm0, %xmm0, %xmm1
12 vpcmpgtw %xmm1, %xmm1, %xmm2
13 vpcmpgtd %xmm2, %xmm2, %xmm3
14 vpcmpgtq %xmm3, %xmm3, %xmm0
16 # CHECK: Iterations: 1500
17 # CHECK-NEXT: Instructions: 6000
18 # CHECK-NEXT: Total Cycles: 3001
19 # CHECK-NEXT: Total uOps: 6000
21 # CHECK: Dispatch Width: 2
22 # CHECK-NEXT: uOps Per Cycle: 2.00
23 # CHECK-NEXT: IPC: 2.00
24 # CHECK-NEXT: Block RThroughput: 2.0
26 # CHECK: Instruction Info:
27 # CHECK-NEXT: [1]: #uOps
28 # CHECK-NEXT: [2]: Latency
29 # CHECK-NEXT: [3]: RThroughput
30 # CHECK-NEXT: [4]: MayLoad
31 # CHECK-NEXT: [5]: MayStore
32 # CHECK-NEXT: [6]: HasSideEffects (U)
34 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
35 # CHECK-NEXT: 1 0 0.50 vpcmpgtb %xmm0, %xmm0, %xmm1
36 # CHECK-NEXT: 1 0 0.50 vpcmpgtw %xmm1, %xmm1, %xmm2
37 # CHECK-NEXT: 1 0 0.50 vpcmpgtd %xmm2, %xmm2, %xmm3
38 # CHECK-NEXT: 1 0 0.50 vpcmpgtq %xmm3, %xmm3, %xmm0
40 # CHECK: Resources:
41 # CHECK-NEXT: [0] - JALU0
42 # CHECK-NEXT: [1] - JALU1
43 # CHECK-NEXT: [2] - JDiv
44 # CHECK-NEXT: [3] - JFPA
45 # CHECK-NEXT: [4] - JFPM
46 # CHECK-NEXT: [5] - JFPU0
47 # CHECK-NEXT: [6] - JFPU1
48 # CHECK-NEXT: [7] - JLAGU
49 # CHECK-NEXT: [8] - JMul
50 # CHECK-NEXT: [9] - JSAGU
51 # CHECK-NEXT: [10] - JSTC
52 # CHECK-NEXT: [11] - JVALU0
53 # CHECK-NEXT: [12] - JVALU1
54 # CHECK-NEXT: [13] - JVIMUL
56 # CHECK: Resource pressure per iteration:
57 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
58 # CHECK-NEXT: - - - - - - - - - - - - - -
60 # CHECK: Resource pressure by instruction:
61 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
62 # CHECK-NEXT: - - - - - - - - - - - - - - vpcmpgtb %xmm0, %xmm0, %xmm1
63 # CHECK-NEXT: - - - - - - - - - - - - - - vpcmpgtw %xmm1, %xmm1, %xmm2
64 # CHECK-NEXT: - - - - - - - - - - - - - - vpcmpgtd %xmm2, %xmm2, %xmm3
65 # CHECK-NEXT: - - - - - - - - - - - - - - vpcmpgtq %xmm3, %xmm3, %xmm0
67 # CHECK: Timeline view:
68 # CHECK-NEXT: Index 0123456
70 # CHECK: [0,0] DR .. vpcmpgtb %xmm0, %xmm0, %xmm1
71 # CHECK-NEXT: [0,1] DR .. vpcmpgtw %xmm1, %xmm1, %xmm2
72 # CHECK-NEXT: [0,2] .DR .. vpcmpgtd %xmm2, %xmm2, %xmm3
73 # CHECK-NEXT: [0,3] .DR .. vpcmpgtq %xmm3, %xmm3, %xmm0
74 # CHECK-NEXT: [1,0] . DR .. vpcmpgtb %xmm0, %xmm0, %xmm1
75 # CHECK-NEXT: [1,1] . DR .. vpcmpgtw %xmm1, %xmm1, %xmm2
76 # CHECK-NEXT: [1,2] . DR.. vpcmpgtd %xmm2, %xmm2, %xmm3
77 # CHECK-NEXT: [1,3] . DR.. vpcmpgtq %xmm3, %xmm3, %xmm0
78 # CHECK-NEXT: [2,0] . DR. vpcmpgtb %xmm0, %xmm0, %xmm1
79 # CHECK-NEXT: [2,1] . DR. vpcmpgtw %xmm1, %xmm1, %xmm2
80 # CHECK-NEXT: [2,2] . DR vpcmpgtd %xmm2, %xmm2, %xmm3
81 # CHECK-NEXT: [2,3] . DR vpcmpgtq %xmm3, %xmm3, %xmm0
83 # CHECK: Average Wait times (based on the timeline view):
84 # CHECK-NEXT: [0]: Executions
85 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
86 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
87 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
89 # CHECK: [0] [1] [2] [3]
90 # CHECK-NEXT: 0. 3 0.0 0.0 0.0 vpcmpgtb %xmm0, %xmm0, %xmm1
91 # CHECK-NEXT: 1. 3 0.0 0.0 0.0 vpcmpgtw %xmm1, %xmm1, %xmm2
92 # CHECK-NEXT: 2. 3 0.0 0.0 0.0 vpcmpgtd %xmm2, %xmm2, %xmm3
93 # CHECK-NEXT: 3. 3 0.0 0.0 0.0 vpcmpgtq %xmm3, %xmm3, %xmm0