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

IABS.s32

T2 mali-gpu alu insn
Mali Valhall IABS.s32 — Absolute value
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

64-bit abs may be constructed in 4 instructions (5 clocks) by checking the sign with ICMP.s32.lt.m1 hi, 0 and negating based on the result with IADD.s64 and LSHIFT_XOR.i32 on each half.

Syntax / Encoding

IABS.s32 rD, src0

Binary Encodings (1)

WidthFormatBit PatternMask / Match
64Valhall-CVTxxxxxxx010010001xxxxxxxxxxxxxxxxxxxxxxxxxxx01000xxxxxxxxxxxxxxxx0x01ff0000001f0000 / 0x0091000000080000

Operands

NameDescription
dst0
src0