vstril_p

Vector String Isolate Left and Record

vstril. vD, vB

Isolates the leftmost element and updates CR6.

Details

Searches the source vector vB from left to right for the first null byte (0x00) and isolates it, placing the result in vD with all bytes after the found null set to zero. Updates CR6 with status bits indicating whether a null byte was found and other string properties. This is the record form (Rc=1) of vstril in the VMX category.

Pseudocode Operation

vD ← isolate_left_null_byte(vB); CR6 ← status_flags(vD)

Example

vstril. vd, vb

Encoding

Binary Layout
4
0
vD
6
0
11
vB
16
1607
21
 
Format VX-form
Opcode 0x10000647
Extension VMX (AltiVec)

Operands

  • vD
    Target
  • vB
    Source