ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 903 microarchs · 15,772 chips · 105 sources
Arch:
Tier:

IMUL.i32

T2 mali-gpu alu insn
Mali Valhall IMUL.i32 — Integer multiply
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:SFU

Summary

$A \cdot B$ with optional saturation. Note the multipliers can only handle up to 32-bit by 32-bit multiplies. The 64-bit "multiply" acts like IMUL.u32 but additionally writes the high half of the product to the high half of the 64-bit destination. Along with IADD.u32 and IADD.u64, this allows the construction of a 64-bit multiply in 5 instructions (6 clocks).

Syntax / Encoding

IMUL.i32 rD, src0, src1

Binary Encodings (1)

WidthFormatBit PatternMask / Match
64Valhall-SFUxxxxxxx010100000xxxxxxxxxxxxxxxxxxxxxxxxxxxx1010xxxxxxxxxxxxxxxx0x01ff0000000f0000 / 0x00a00000000a0000

Operands

NameDescription
dst0
src0A
src1B