| Issue |
239960
|
| Summary |
[X86] Use GFNI to materialize a vXi8 uniform vector constant
|
| Labels |
backend:X86
|
| Assignees |
|
| Reporter |
RKSimon
|
GFNI targets can create any vXi8 uniform constant with the vgf2p8affineqb instruction, zero inputs and the required constant immediate:
```c
_mm512_gf2p8affine_epi64_epi8(_mm512_setzero_si512(), _mm512_setzero_si512(), CONSTANT)
```
```s
vpxor %xmm0, %xmm0, %xmm0
vgf2p8affineqb $CONSTANT, %zmm0, %zmm0, %zmm0
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs