moduq
Modulo Unsigned Quadword
moduq vD, vA, vB
Computes remainder of 128-bit unsigned division.
Encoding
Binary Layout
4
0:5
vD
6:10
vA
11:15
vB
16:20
11
21:31
Operands
-
vD
Target -
vA
Dividend -
vB
Divisor
Example
moduq vd, va, vb
Related
More in Base
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Computes the remainder of a 128-bit unsigned integer division, storing the 128-bit unsigned remainder in vD. This is a VSX or MMA category instruction. The operation uses the dividend (vA) and divisor (vB) to compute the modulo result.
Operation
vD ← vA mod vB (128-bit unsigned integer modulo)