Commit d148407
authored
[X86][AVX512] Add pseudos for
Introduce `AVX512_128_SETALLONES`, `AVX512_256_SETALLONES` pseudos to
generate all-ones vectors.
Post-RA expansion:
- Use VEX vpcmpeqd for XMM/YMM0–15 when available (matches current
codegen as `AVX512_128/256_SETALLONES` will be preferred over
`AVX1/2_SETALLONES` for AVX512VL target).
- Use EVEX `vpternlogd imm=0xFF` for high regs.
Includes MIR tests for both VEX and EVEX paths.AVX512_*_SETALLONES (#169009)1 parent a27842c commit d148407
File tree
5 files changed
+95
-2
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
5 files changed
+95
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
303 | 309 | | |
304 | 310 | | |
305 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| 781 | + | |
| 782 | + | |
781 | 783 | | |
782 | 784 | | |
783 | 785 | | |
| |||
6246 | 6248 | | |
6247 | 6249 | | |
6248 | 6250 | | |
| 6251 | + | |
| 6252 | + | |
6249 | 6253 | | |
6250 | 6254 | | |
6251 | | - | |
| 6255 | + | |
| 6256 | + | |
| 6257 | + | |
| 6258 | + | |
| 6259 | + | |
| 6260 | + | |
| 6261 | + | |
| 6262 | + | |
| 6263 | + | |
| 6264 | + | |
| 6265 | + | |
| 6266 | + | |
| 6267 | + | |
| 6268 | + | |
| 6269 | + | |
| 6270 | + | |
| 6271 | + | |
| 6272 | + | |
| 6273 | + | |
| 6274 | + | |
| 6275 | + | |
6252 | 6276 | | |
6253 | 6277 | | |
6254 | 6278 | | |
| |||
8190 | 8214 | | |
8191 | 8215 | | |
8192 | 8216 | | |
| 8217 | + | |
8193 | 8218 | | |
8194 | 8219 | | |
8195 | 8220 | | |
8196 | 8221 | | |
8197 | 8222 | | |
8198 | 8223 | | |
8199 | 8224 | | |
| 8225 | + | |
8200 | 8226 | | |
8201 | 8227 | | |
8202 | 8228 | | |
| |||
8255 | 8281 | | |
8256 | 8282 | | |
8257 | 8283 | | |
| 8284 | + | |
| 8285 | + | |
8258 | 8286 | | |
8259 | 8287 | | |
8260 | 8288 | | |
| |||
8315 | 8343 | | |
8316 | 8344 | | |
8317 | 8345 | | |
| 8346 | + | |
8318 | 8347 | | |
8319 | 8348 | | |
8320 | 8349 | | |
| |||
8328 | 8357 | | |
8329 | 8358 | | |
8330 | 8359 | | |
| 8360 | + | |
8331 | 8361 | | |
8332 | 8362 | | |
8333 | 8363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
0 commit comments