vstribl

Vector String Isolate Byte Left

vstribl vD, vB

Stores the leftmost byte of each element in a vector register to memory.

Details

The Vector String Isolate Byte Left (vstribl) instruction isolates the leftmost byte of a string in each element of a vector and stores it in the corresponding element of the destination vector.

Pseudocode Operation

// Stores the leftmost byte of each element in a vector register to memory

Programming Note

The vstribl instruction is useful for extracting the first character from strings stored in vector registers. Ensure that the input vectors are properly aligned to avoid alignment faults. This instruction operates at user privilege level and will raise an exception if executed in a kernel context without proper permissions.

Example

vstribl vd, vb

Encoding

Binary Layout
4
0
VRT
6
0
11
VRB
16
Rc
21
13
22
 
Format VX-form
Opcode 0x1000000D
Extension VMX (AltiVec)

Operands

  • vD
    Target
  • vB
    Source
  • VS32
    Target Vector Register
  • VS31
    Source Vector Register
  • RB
    Base Address General Purpose Register