Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-mca / X86 / SapphireRapids / resources-avx512vpopcntdqvl.s
blob9b5ebc7e0e9ea8911034437979f2ac867d5f5716
1 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=sapphirerapids -instruction-tables < %s | FileCheck %s
4 vpopcntd %xmm1, %xmm0
5 vpopcntd (%rdi), %xmm0
6 vpopcntd (%rdi){1to4}, %xmm0
8 vpopcntd %xmm1, %xmm0 {%k1}
9 vpopcntd (%rdi), %xmm0 {%k1}
10 vpopcntd (%rdi){1to4}, %xmm0 {%k1}
12 vpopcntd %xmm1, %xmm0 {%k1} {z}
13 vpopcntd (%rdi), %xmm0 {%k1} {z}
14 vpopcntd (%rdi){1to4}, %xmm0 {%k1} {z}
16 vpopcntd %ymm1, %ymm0
17 vpopcntd (%rdi), %ymm0
18 vpopcntd (%rdi){1to8}, %ymm0
20 vpopcntd %ymm1, %ymm0 {%k1}
21 vpopcntd (%rdi), %ymm0 {%k1}
22 vpopcntd (%rdi){1to8}, %ymm0 {%k1}
24 vpopcntd %ymm1, %ymm0 {%k1} {z}
25 vpopcntd (%rdi), %ymm0 {%k1} {z}
26 vpopcntd (%rdi){1to8}, %ymm0 {%k1} {z}
28 vpopcntq %xmm1, %xmm0
29 vpopcntq (%rdi), %xmm0
30 vpopcntq (%rdi){1to2}, %xmm0
32 vpopcntq %xmm1, %xmm0 {%k1}
33 vpopcntq (%rdi), %xmm0 {%k1}
34 vpopcntq (%rdi){1to2}, %xmm0 {%k1}
36 vpopcntq %xmm1, %xmm0 {%k1} {z}
37 vpopcntq (%rdi), %xmm0 {%k1} {z}
38 vpopcntq (%rdi){1to2}, %xmm0 {%k1} {z}
40 vpopcntq %ymm1, %ymm0
41 vpopcntq (%rdi), %ymm0
42 vpopcntq (%rdi){1to4}, %ymm0
44 vpopcntq %ymm1, %ymm0 {%k1}
45 vpopcntq (%rdi), %ymm0 {%k1}
46 vpopcntq (%rdi){1to4}, %ymm0 {%k1}
48 vpopcntq %ymm1, %ymm0 {%k1} {z}
49 vpopcntq (%rdi), %ymm0 {%k1} {z}
50 vpopcntq (%rdi){1to4}, %ymm0 {%k1} {z}
52 # CHECK: Instruction Info:
53 # CHECK-NEXT: [1]: #uOps
54 # CHECK-NEXT: [2]: Latency
55 # CHECK-NEXT: [3]: RThroughput
56 # CHECK-NEXT: [4]: MayLoad
57 # CHECK-NEXT: [5]: MayStore
58 # CHECK-NEXT: [6]: HasSideEffects (U)
60 # CHECK: [1] [2] [3] [4] [5] [6] Instructions:
61 # CHECK-NEXT: 1 3 1.00 vpopcntd %xmm1, %xmm0
62 # CHECK-NEXT: 2 10 1.00 * vpopcntd (%rdi), %xmm0
63 # CHECK-NEXT: 2 10 1.00 * vpopcntd (%rdi){1to4}, %xmm0
64 # CHECK-NEXT: 1 3 1.00 vpopcntd %xmm1, %xmm0 {%k1}
65 # CHECK-NEXT: 2 10 1.00 * vpopcntd (%rdi), %xmm0 {%k1}
66 # CHECK-NEXT: 2 10 1.00 * vpopcntd (%rdi){1to4}, %xmm0 {%k1}
67 # CHECK-NEXT: 1 3 1.00 vpopcntd %xmm1, %xmm0 {%k1} {z}
68 # CHECK-NEXT: 2 10 1.00 * vpopcntd (%rdi), %xmm0 {%k1} {z}
69 # CHECK-NEXT: 2 10 1.00 * vpopcntd (%rdi){1to4}, %xmm0 {%k1} {z}
70 # CHECK-NEXT: 1 3 1.00 vpopcntd %ymm1, %ymm0
71 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi), %ymm0
72 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi){1to8}, %ymm0
73 # CHECK-NEXT: 1 3 1.00 vpopcntd %ymm1, %ymm0 {%k1}
74 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi), %ymm0 {%k1}
75 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi){1to8}, %ymm0 {%k1}
76 # CHECK-NEXT: 1 3 1.00 vpopcntd %ymm1, %ymm0 {%k1} {z}
77 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi), %ymm0 {%k1} {z}
78 # CHECK-NEXT: 2 11 1.00 * vpopcntd (%rdi){1to8}, %ymm0 {%k1} {z}
79 # CHECK-NEXT: 1 3 1.00 vpopcntq %xmm1, %xmm0
80 # CHECK-NEXT: 2 10 1.00 * vpopcntq (%rdi), %xmm0
81 # CHECK-NEXT: 2 10 1.00 * vpopcntq (%rdi){1to2}, %xmm0
82 # CHECK-NEXT: 1 3 1.00 vpopcntq %xmm1, %xmm0 {%k1}
83 # CHECK-NEXT: 2 10 1.00 * vpopcntq (%rdi), %xmm0 {%k1}
84 # CHECK-NEXT: 2 10 1.00 * vpopcntq (%rdi){1to2}, %xmm0 {%k1}
85 # CHECK-NEXT: 1 3 1.00 vpopcntq %xmm1, %xmm0 {%k1} {z}
86 # CHECK-NEXT: 2 10 1.00 * vpopcntq (%rdi), %xmm0 {%k1} {z}
87 # CHECK-NEXT: 2 10 1.00 * vpopcntq (%rdi){1to2}, %xmm0 {%k1} {z}
88 # CHECK-NEXT: 1 3 1.00 vpopcntq %ymm1, %ymm0
89 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi), %ymm0
90 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi){1to4}, %ymm0
91 # CHECK-NEXT: 1 3 1.00 vpopcntq %ymm1, %ymm0 {%k1}
92 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi), %ymm0 {%k1}
93 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi){1to4}, %ymm0 {%k1}
94 # CHECK-NEXT: 1 3 1.00 vpopcntq %ymm1, %ymm0 {%k1} {z}
95 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi), %ymm0 {%k1} {z}
96 # CHECK-NEXT: 2 11 1.00 * vpopcntq (%rdi){1to4}, %ymm0 {%k1} {z}
98 # CHECK: Resources:
99 # CHECK-NEXT: [0] - SPRPort00
100 # CHECK-NEXT: [1] - SPRPort01
101 # CHECK-NEXT: [2] - SPRPort02
102 # CHECK-NEXT: [3] - SPRPort03
103 # CHECK-NEXT: [4] - SPRPort04
104 # CHECK-NEXT: [5] - SPRPort05
105 # CHECK-NEXT: [6] - SPRPort06
106 # CHECK-NEXT: [7] - SPRPort07
107 # CHECK-NEXT: [8] - SPRPort08
108 # CHECK-NEXT: [9] - SPRPort09
109 # CHECK-NEXT: [10] - SPRPort10
110 # CHECK-NEXT: [11] - SPRPort11
111 # CHECK-NEXT: [12] - SPRPortInvalid
113 # CHECK: Resource pressure per iteration:
114 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
115 # CHECK-NEXT: - - 8.00 8.00 - 36.00 - - - - - 8.00 -
117 # CHECK: Resource pressure by instruction:
118 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] Instructions:
119 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %xmm1, %xmm0
120 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi), %xmm0
121 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi){1to4}, %xmm0
122 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %xmm1, %xmm0 {%k1}
123 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi), %xmm0 {%k1}
124 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi){1to4}, %xmm0 {%k1}
125 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %xmm1, %xmm0 {%k1} {z}
126 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi), %xmm0 {%k1} {z}
127 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi){1to4}, %xmm0 {%k1} {z}
128 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %ymm1, %ymm0
129 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi), %ymm0
130 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi){1to8}, %ymm0
131 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %ymm1, %ymm0 {%k1}
132 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi), %ymm0 {%k1}
133 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi){1to8}, %ymm0 {%k1}
134 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntd %ymm1, %ymm0 {%k1} {z}
135 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi), %ymm0 {%k1} {z}
136 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntd (%rdi){1to8}, %ymm0 {%k1} {z}
137 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %xmm1, %xmm0
138 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi), %xmm0
139 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi){1to2}, %xmm0
140 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %xmm1, %xmm0 {%k1}
141 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi), %xmm0 {%k1}
142 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi){1to2}, %xmm0 {%k1}
143 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %xmm1, %xmm0 {%k1} {z}
144 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi), %xmm0 {%k1} {z}
145 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi){1to2}, %xmm0 {%k1} {z}
146 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %ymm1, %ymm0
147 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi), %ymm0
148 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi){1to4}, %ymm0
149 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %ymm1, %ymm0 {%k1}
150 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi), %ymm0 {%k1}
151 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi){1to4}, %ymm0 {%k1}
152 # CHECK-NEXT: - - - - - 1.00 - - - - - - - vpopcntq %ymm1, %ymm0 {%k1} {z}
153 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi), %ymm0 {%k1} {z}
154 # CHECK-NEXT: - - 0.33 0.33 - 1.00 - - - - - 0.33 - vpopcntq (%rdi){1to4}, %ymm0 {%k1} {z}