modsq
Modulo Signed Quadword
modsq vD, vA, vB
Computes remainder of 128-bit signed division.
Encoding
Binary Layout
4
0:5
vD
6:10
vA
11:15
vB
16:20
267
21:31
Operands
-
vD
Target -
vA
Dividend -
vB
Divisor
Example
modsq 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 signed integer division, storing the 128-bit signed 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, with sign following the dividend.
Operation
vD ← vA mod vB (128-bit signed integer modulo)