vstril
Vector String Isolate Left
vstril vD, vB
Isolates the leftmost element that matches the condition.
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 to indicate whether a null byte was found. This VMX instruction operates on byte elements.
Pseudocode Operation
vD ← isolate_left_null_byte(vB); CR6 ← null_byte_found_flag
Example
vstril vd, vb
Encoding
Binary Layout
4
0
vD
6
0
11
vB
16
1607
21
Operands
-
vD
Target -
vB
Source