ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

WMASK

T2 mali-gpu alu insn
Mali Valhall WMASK — Warp mask
SourceArm Mali Valhall GPU ISA Specification (Mesa Panfrost) (mali_valhall_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeArm Mali Valhall (G57–G720 / Immortalis)
Arm Mali Valhall (G57, G77, G78, G610, G710, Immortalis-G715/G720/G925)
License & VersionMIT
mesa/main
Upstreamhttps://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/panfrost/compiler/bifrost/valhall/ISA.xml
Privilegeuser
ExtensionsValhall, Unit:CVT

Summary

Returns the mask of lanes ever active within the warp (subgroup), such that the source is nonzero. The number of work-items in a subgroup is given as the popcount of this value with a nonzero input. An all() subgroup operation may be constructed as WMASK of the input compared for equality with WMASK of an nonzero value. An any() subgroup operation may be constructed as WMASK of the input compared against zero.

Syntax / Encoding

WMASK.subgroup rD, src0

Binary Encodings (1)

WidthFormatBit PatternMask / Match
64Valhall-CVTxxxxxxx010010101xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0x01ff000000000000 / 0x0095000000000000

Operands

NameDescription
dst0
src0