vrfiz
Vector Round to Floating-Point Integer towards Zero
vrfiz vD, vB
Rounds 4 floats to integer (trunc).
Details
The vrfiz instruction rounds each single-precision floating-point value in the source vector to the nearest integer towards zero and stores the result in the destination vector.
Pseudocode Operation
Programming Note
The vrfiz instruction rounds each single-precision floating-point value in the source vector towards zero. Ensure that the Vector Facility is enabled by checking and setting the VEC bit in the MSR register. This instruction operates on 32-bit words, so ensure proper alignment of the data for optimal performance.
Example
vrfiz vd, vb
Encoding
Binary Layout
4
0
vD
6
0
11
vB
16
586
21
Operands
-
vD
Target -
vB
Source