[RISCV] Fix the cost of `llvm.vector.reduce.and` (#119160)
[llvm-project.git] / llvm / test / tools / llvm-mca / X86 / Haswell / adcx-adox-read-advance.s
blobd418b6176c993126bb97976c460064788adee15f
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=haswell -timeline -iterations=2 < %s | FileCheck %s
4 # PR51494: Missing read-advance for the implicit read of EFLAGS.
6 # LLVM-MCA-BEGIN
7 adcx (%rdi), %rcx
8 # LLVM-MCA-END
10 # LLVM-MCA-BEGIN
11 adox (%rdi), %rcx
12 # LLVM-MCA-END
14 # CHECK: [0] Code Region
16 # CHECK: Iterations: 2
17 # CHECK-NEXT: Instructions: 2
18 # CHECK-NEXT: Total Cycles: 12
19 # CHECK-NEXT: Total uOps: 6
21 # CHECK: Dispatch Width: 4
22 # CHECK-NEXT: uOps Per Cycle: 0.50
23 # CHECK-NEXT: IPC: 0.17
24 # CHECK-NEXT: Block RThroughput: 0.8
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: 3 7 0.50 * adcxq (%rdi), %rcx
37 # CHECK: Resources:
38 # CHECK-NEXT: [0] - HWDivider
39 # CHECK-NEXT: [1] - HWFPDivider
40 # CHECK-NEXT: [2] - HWPort0
41 # CHECK-NEXT: [3] - HWPort1
42 # CHECK-NEXT: [4] - HWPort2
43 # CHECK-NEXT: [5] - HWPort3
44 # CHECK-NEXT: [6] - HWPort4
45 # CHECK-NEXT: [7] - HWPort5
46 # CHECK-NEXT: [8] - HWPort6
47 # CHECK-NEXT: [9] - HWPort7
49 # CHECK: Resource pressure per iteration:
50 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
51 # CHECK-NEXT: - - 0.50 0.50 0.50 0.50 - 0.50 0.50 -
53 # CHECK: Resource pressure by instruction:
54 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
55 # CHECK-NEXT: - - 0.50 0.50 0.50 0.50 - 0.50 0.50 - adcxq (%rdi), %rcx
57 # CHECK: Timeline view:
58 # CHECK-NEXT: 01
59 # CHECK-NEXT: Index 0123456789
61 # CHECK: [0,0] DeeeeeeeER.. adcxq (%rdi), %rcx
62 # CHECK-NEXT: [1,0] .D=eeeeeeeER adcxq (%rdi), %rcx
64 # CHECK: Average Wait times (based on the timeline view):
65 # CHECK-NEXT: [0]: Executions
66 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
67 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
68 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
70 # CHECK: [0] [1] [2] [3]
71 # CHECK-NEXT: 0. 2 1.5 0.5 0.0 adcxq (%rdi), %rcx
73 # CHECK: [1] Code Region
75 # CHECK: Iterations: 2
76 # CHECK-NEXT: Instructions: 2
77 # CHECK-NEXT: Total Cycles: 12
78 # CHECK-NEXT: Total uOps: 6
80 # CHECK: Dispatch Width: 4
81 # CHECK-NEXT: uOps Per Cycle: 0.50
82 # CHECK-NEXT: IPC: 0.17
83 # CHECK-NEXT: Block RThroughput: 0.8
85 # CHECK: Instruction Info:
86 # CHECK-NEXT: [1]: #uOps
87 # CHECK-NEXT: [2]: Latency
88 # CHECK-NEXT: [3]: RThroughput
89 # CHECK-NEXT: [4]: MayLoad
90 # CHECK-NEXT: [5]: MayStore
91 # CHECK-NEXT: [6]: HasSideEffects (U)
93 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
94 # CHECK-NEXT: 3 7 0.50 * adoxq (%rdi), %rcx
96 # CHECK: Resources:
97 # CHECK-NEXT: [0] - HWDivider
98 # CHECK-NEXT: [1] - HWFPDivider
99 # CHECK-NEXT: [2] - HWPort0
100 # CHECK-NEXT: [3] - HWPort1
101 # CHECK-NEXT: [4] - HWPort2
102 # CHECK-NEXT: [5] - HWPort3
103 # CHECK-NEXT: [6] - HWPort4
104 # CHECK-NEXT: [7] - HWPort5
105 # CHECK-NEXT: [8] - HWPort6
106 # CHECK-NEXT: [9] - HWPort7
108 # CHECK: Resource pressure per iteration:
109 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9]
110 # CHECK-NEXT: - - 0.50 0.50 0.50 0.50 - 0.50 0.50 -
112 # CHECK: Resource pressure by instruction:
113 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] Instructions:
114 # CHECK-NEXT: - - 0.50 0.50 0.50 0.50 - 0.50 0.50 - adoxq (%rdi), %rcx
116 # CHECK: Timeline view:
117 # CHECK-NEXT: 01
118 # CHECK-NEXT: Index 0123456789
120 # CHECK: [0,0] DeeeeeeeER.. adoxq (%rdi), %rcx
121 # CHECK-NEXT: [1,0] .D=eeeeeeeER adoxq (%rdi), %rcx
123 # CHECK: Average Wait times (based on the timeline view):
124 # CHECK-NEXT: [0]: Executions
125 # CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
126 # CHECK-NEXT: [2]: Average time spent waiting in a scheduler's queue while ready
127 # CHECK-NEXT: [3]: Average time elapsed from WB until retire stage
129 # CHECK: [0] [1] [2] [3]
130 # CHECK-NEXT: 0. 2 1.5 0.5 0.0 adoxq (%rdi), %rcx