vstribr
Vector String Isolate Byte Right
vstribr VRT,VRB
vstribr. VRT,VRB
vstribr. VRT,VRB
Isolates the rightmost non-zero byte in a vector string and shifts it to the left.
Details
The vstribr instruction isolates the rightmost non-zero byte in VSR[VRB+32] and shifts it to the left, filling the remaining bytes with zeros. If Rc=1, CR6 is updated based on whether a null character was found.
Pseudocode Operation
Programming Note
When Rc=1, CR1 is set from the FPSCR[FX, FEX, VX, OX] bits immediately after the operation completes.
Example
vstribr v1, v3
Encoding
Binary Layout
0
0
VRT
6
VRB
11
Rc
16
13
21
Operands
-
vD
Target -
vB
Source -
VRT
Target Vector Register -
VRB
Source Vector Register