AI Engine-ML Intrinsics User Guide  (v2023.2)

Vector set intrinsic functions allow setting the lanes within a vector value. More...

Overview

Vector set intrinsic functions allow setting the lanes within a vector value.

The lanes that will be set depend on the size of the vector that is given as an input and the parameter idx. There are two cases:

  1. Input vector fills half of the vector lanes of output vector (e.g. set v64int8 in v128int8)
  2. Input vector fills a fourth of the vector lanes of output vector (e.g. set v32int8 in v128int8)

In the first case, idx can be zero or one. If it is zero, the lower half of the vector will be set, if it is one the upper half of the lanes will be set.
In the second case, idx can be zero to three. If idx is zero, the lowest quarter of the vector will be set, if idx is one the next highest quarter will be set etc...

If a scalar is passed as an input, the intrisics set the lane that is given by idx to be the passed scalar value.

Modules

 Set an element of a vector
 
 Set specific lanes of a vector