vmoduq

Vector Modulo Unsigned Quadword

vmoduq vD, vA, vB

Computes remainder of 128-bit unsigned division.

Formerly listed on this site as moduq; the old address leads here. Renamed to vmoduq, the name Power ISA v3.1C and binutils give this instruction; moduq is in neither. Its encoding was corrected to vmoduq's.

Encoding

Binary Layout
4
0:5
VRT
6:10
VRA
11:15
VRB
16:20
1547
21:31
 
Format VX-form
Opcode 0x1000060B
Extension VMX (AltiVec)

Operands

  • vD
    Target
  • vA
    Dividend
  • vB
    Divisor

Example

vmoduq vd, va, vb

Related

More in VMX (AltiVec)

Reference

Description

Computes the remainder of a 128-bit unsigned integer division, storing the 128-bit unsigned remainder in vD. It is a Vector Facility 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)