Skip to content

simd/archsimd: bitwise 128- and 256-bit Mask operations could require only AVX #82194

Description

@aclements

Currently, Mask*.And/Or/AndNot/Xor for 128- and 256-bit masks lower to VPAND, VPOR, VPANDN, and VPXOR on amd64, which require AVX2. They could instead lower to VANDPS/VORPS/VANDNPS/VXORPS, which only require AVX.

(Ironically, Mask*.Equal remains rather annoying to do on AVX.)

/cc @dr2chase @JunyangShao

Activity

  1. added this to the Go1.28 milestone on Oct 13, 2026
  2. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on Oct 16, 2026
  3. gopherbot commented on Oct 23, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/853366 mentions this issue: cmd/compile, simd/archsimd: lower 256-bit mask bitwise ops with AVX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions