moduq

Modulo Unsigned Quadword

moduq vD, vA, vB

Computes remainder of 128-bit unsigned division.

Details

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.

Pseudocode Operation

vD ← vA mod vB (128-bit unsigned integer modulo)

Example

moduq vd, va, vb

Encoding

Binary Layout
4
0
vD
6
vA
11
vB
16
11
21
 
Format VX-form
Opcode 0x1000000B
Extension Base

Operands

  • vD
    Target
  • vA
    Dividend
  • vB
    Divisor