vstrihl
Vector String Isolate Halfword Left-justified
vstrihl vD, vB
Isolates the leftmost element that matches the condition.
Formerly listed on this site as vstril; the old address leads here.
Renamed to vstrihl, the name Power ISA v3.1C and binutils give this instruction; vstril is in neither. Its encoding was corrected to vstrihl's.
Encoding
Binary Layout
4
0:5
VRT
6:10
2
11:15
VRB
16:20
Rc
21
13
22:31
Operands
-
vD
Target -
vB
Source
Example
vstrihl vd, vb
Related
More in VMX (AltiVec)
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Copies the halfword elements of vB into vD from left to right until it reaches a halfword that is zero; that halfword and every halfword to its right are set to zero in vD. The record form (Rc=1) sets a bit of CR6 when a zero halfword was found. This VMX instruction operates on halfword elements.
Operation
vD ← isolate_left_null_halfword(vB); CR6 ← null_halfword_found_flag (if Rc=1)