Skip to content

[X86] Use GFNI to materialize a vXi8 uniform vector constant #239960

Open

Description

@RKSimon

GFNI targets can create any vXi8 uniform constant with the vgf2p8affineqb instruction, zero inputs and the required constant immediate:

  _mm512_gf2p8affine_epi64_epi8(_mm512_setzero_si512(), _mm512_setzero_si512(), CONSTANT)
  vpxor %xmm0, %xmm0, %xmm0
  vgf2p8affineqb $CONSTANT, %zmm0, %zmm0, %zmm0

Activity

  1. llvmorg-github-actions commented on Nov 7, 2026

    @llvmorg-github-actions

    @llvm/issue-subscribers-backend-x86

    Author: Simon Pilgrim (RKSimon)

    Details 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 ```
  2. added theissue type on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions