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

FMA_RSCALE_SCALE16.f32

T2 mali-gpu fp insn
Mali Valhall FMA_RSCALE_SCALE16.f32 — Fused floating-point multiply add with 16-bit exponent bias
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:FMA

Summary

First calculates $A \cdot B + C$ and then biases the exponent by D, interpreted as a 16-bit value. Used in special transcendental function sequences. It should not be used for general code as its special case handling differs from two back-to-back FMA.f32 operations. Equivalent to FMA.f32 back-to-back with LDEXP.f32

Syntax / Encoding

FMA_RSCALE_SCALE16.f32.clamp rD, src0, src1, src2, src3

Binary Encodings (1)

WidthFormatBit PatternMask / Match
64Valhall-FMAxxxxxxx101100011xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0x01ff000000000000 / 0x0163000000000000

Operands

NameDescription
dst0
src0A
src1B
src2C
src3D