Commit 10b0dee
[X86] Ensure that bit reversals of byte vectors are properly lowered on pure GFNI targets (llvm#148304)
Fixes llvm#148238.
When GFNI is present, custom bit reversal lowerings for scalar integers
become active. They work by swapping the bytes in the scalar value and
then reversing bits in a vector of bytes. However, the custom bit
reversal lowering for a vector of bytes is disabled if GFNI is present
in isolation, resulting messed up code.
---------
Co-authored-by: Simon Pilgrim <[email protected]>1 parent 4bf4e87 commit 10b0dee
File tree
2 files changed
+313
-84
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
2 files changed
+313
-84
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
1326 | | - | |
| 1326 | + | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1331 | 1335 | | |
1332 | 1336 | | |
1333 | 1337 | | |
| |||
32694 | 32698 | | |
32695 | 32699 | | |
32696 | 32700 | | |
32697 | | - | |
| 32701 | + | |
| 32702 | + | |
32698 | 32703 | | |
32699 | 32704 | | |
32700 | 32705 | | |
| |||
0 commit comments