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

MKVEC.v2i8

T2 mali-gpu alu insn
Mali Valhall MKVEC.v2i8 — Make 8-bit vector
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

Calculates $A | (B \ll 8) | (CD \ll 16)$ for 8-bit A and B and 16-bit CD. To implement (uchar4) (A, B, C, D) in full generality, use the sequence MKVEC.v2i8 CD, C, D, #0; MKVEC.v2i8 out, A, B, CD MKVEC.v2i8 also allows zero extending arbitrary 8-bit lanes. For example, to extend r0.b3 to r1, use MKVEC.v2i8 r1, r0.b3, 0x0.b0, 0x0.

Syntax / Encoding

MKVEC.v2i8 rD, src0, src1, src2

Binary Encodings (1)

WidthFormatBit PatternMask / Match
64Valhall-CVTxxxxxxx010111101xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0x01ff000000000000 / 0x00bd000000000000

Operands

NameDescription
dst0
src0A
src1B
src2CD