AI Engine Intrinsics User Guide
(AIE) v(2024.1)
|
Advanced Floating-point Vector Lane Selection
Select: Selects between the first set of lanes or the second one according to the value in 'select'. If the lane corresponding bit in select is 0 it returns the value in the first set of lanes,otherwise, if it is 1, it returns the value in the second set of lanes.
Shuffle: Shuffle selects from a single input acording to the start/offset computation.
To have more information in lane selection please refer to here.
Functions | |
v16float | fpselect16 (unsigned int select, v32float xbuff, int xstart, unsigned int xoffsets, unsigned int xoffsets_hi, int ystart, unsigned int yoffsets, unsigned int yoffsets_hi) |
Performs a floating point selection between lanes of xbuff. | |
v16float | fpselect16 (unsigned int select, v16float xbuff, int xstart, unsigned int xoffsets, unsigned int xoffsets_hi, int ystart, unsigned int yoffsets, unsigned int yoffsets_hi) |
Performs a floating point selection between lanes of xbuff. | |
v16float | fpselect16 (unsigned int select, v16float xbuff, int xstart, unsigned int xoffsets, unsigned int xoffsets_hi, v16float ybuff, int ystart, unsigned int yoffsets, unsigned int yoffsets_hi) |
Performs a floating point selection between lanes of xbuff and ybuff. | |
v8cfloat | fpselect8 (unsigned int select, v16cfloat xbuff, int xstart, unsigned int xoffsets, int ystart, unsigned int yoffsets) |
Performs a floating point selection between lanes of xbuff. | |
v8cfloat | fpselect8 (unsigned int select, v8cfloat xbuff, int xstart, unsigned int xoffsets, int ystart, unsigned int yoffsets) |
Performs a floating point selection between lanes of xbuff. | |
v8cfloat | fpselect8 (unsigned int select, v8cfloat xbuff, int xstart, unsigned int xoffsets, v8cfloat ybuff, int ystart, unsigned int yoffsets) |
Performs a floating point selection between lanes of xbuff and ybuff. | |
v16float | fpshuffle16 (v32float xbuff, int xstart, unsigned int xoffsets, unsigned int xoffsets_hi) |
Performs a floating point shuffle between lanes of xbuff. | |
v16float | fpshuffle16 (v16float xbuff, int xstart, unsigned int xoffsets, unsigned int xoffsets_hi) |
Performs a floating point shuffle between lanes of xbuff. | |
v8cfloat | fpshuffle8 (v16cfloat xbuff, int xstart, unsigned int xoffsets) |
Performs a floating point shuffle between lanes of xbuff. | |
v8cfloat | fpshuffle8 (v8cfloat xbuff, int xstart, unsigned int xoffsets) |
Performs a floating point shuffle between lanes of xbuff. | |
v16float fpselect16 | ( | unsigned int | select, |
v32float | xbuff, | ||
int | xstart, | ||
unsigned int | xoffsets, | ||
unsigned int | xoffsets_hi, | ||
int | ystart, | ||
unsigned int | yoffsets, | ||
unsigned int | yoffsets_hi | ||
) |
Performs a floating point selection between lanes of xbuff.
select | Value of each bit selects from the value to be placed in the corresponding vector position |
xbuff | Input buffer of 32 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 4b offset for each lane, applied to the xbuffer. LSB apply to first lane |
xoffsets_hi | 4b offset for each lane, applied to the xbuffer. LSB apply to 8th lane |
ystart | Starting position offset applied to all lanes of input from xbuffer for the second input |
yoffsets | 4b offset for each lane, applied to the xbuffer. LSB apply to first lane |
yoffsets_hi | 4b offset for each lane, applied to the xbuffer. LSB apply to 8th lane |
v16float fpselect16 | ( | unsigned int | select, |
v16float | xbuff, | ||
int | xstart, | ||
unsigned int | xoffsets, | ||
unsigned int | xoffsets_hi, | ||
int | ystart, | ||
unsigned int | yoffsets, | ||
unsigned int | yoffsets_hi | ||
) |
Performs a floating point selection between lanes of xbuff.
select | Value of each bit selects from the value to be placed in the corresponding vector position |
xbuff | Input buffer of 16 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 4b offset for each lane, applied to the xbuffer. LSB apply to first lane |
xoffsets_hi | 4b offset for each lane, applied to the xbuffer. LSB apply to 8th lane |
ystart | Starting position offset applied to all lanes of input from xbuffer for the second input |
yoffsets | 4b offset for each lane, applied to the xbuffer. LSB apply to first lane |
yoffsets_hi | 4b offset for each lane, applied to the xbuffer. LSB apply to 8th lane |
v16float fpselect16 | ( | unsigned int | select, |
v16float | xbuff, | ||
int | xstart, | ||
unsigned int | xoffsets, | ||
unsigned int | xoffsets_hi, | ||
v16float | ybuff, | ||
int | ystart, | ||
unsigned int | yoffsets, | ||
unsigned int | yoffsets_hi | ||
) |
Performs a floating point selection between lanes of xbuff and ybuff.
select | Value of each bit selects from the value to be placed in the corresponding vector position |
xbuff | Input buffer of 16 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 4b offset for each lane, applied to the xbuffer. LSB apply to first lane |
xoffsets_hi | 4b offset for each lane, applied to the xbuffer. LSB apply to 8th lane |
ybuff | Input buffer of 16 elements with single precision |
ystart | Starting position offset applied to all lanes of input from ybuffer for the second input |
yoffsets | 4b offset for each lane, applied to the ybuffer. LSB apply to first lane |
yoffsets_hi | 4b offset for each lane, applied to the ybuffer. LSB apply to 8th lane |
v8cfloat fpselect8 | ( | unsigned int | select, |
v16cfloat | xbuff, | ||
int | xstart, | ||
unsigned int | xoffsets, | ||
int | ystart, | ||
unsigned int | yoffsets | ||
) |
Performs a floating point selection between lanes of xbuff.
select | Value of each bit selects from the value to be placed in the corresponding vector position |
xbuff | Input buffer of 16 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 3b (aligned to 4b) offset for each lane, applied to the xbuffer. LSB apply to first lane |
ystart | Starting position offset applied to all lanes of input from xbuffer for the second input |
yoffsets | 3b (aligned to 4b) offset for each lane in the xbuffer for the second input. LSB apply to first lane |
v8cfloat fpselect8 | ( | unsigned int | select, |
v8cfloat | xbuff, | ||
int | xstart, | ||
unsigned int | xoffsets, | ||
int | ystart, | ||
unsigned int | yoffsets | ||
) |
Performs a floating point selection between lanes of xbuff.
select | Value of each bit selects from the value to be placed in the corresponding vector position |
xbuff | Input buffer of 8 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 3b (aligned to 4b) offset for each lane, applied to the xbuffer. LSB apply to first lane |
ystart | Starting position offset applied to all lanes of input from xbuffer for the second input |
yoffsets | 3b (aligned to 4b) offset for each lane in the xbuffer for the second input. LSB apply to first lane |
v8cfloat fpselect8 | ( | unsigned int | select, |
v8cfloat | xbuff, | ||
int | xstart, | ||
unsigned int | xoffsets, | ||
v8cfloat | ybuff, | ||
int | ystart, | ||
unsigned int | yoffsets | ||
) |
Performs a floating point selection between lanes of xbuff and ybuff.
select | Value of each bit selects from the value to be placed in the corresponding vector position |
xbuff | Input buffer of 8 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 3b (aligned to 4b) offset for each lane, applied to the xbuffer. LSB apply to first lane |
ybuff | Input buffer of 8 elements with single precision |
ystart | Starting position offset applied to all lanes of input from ybuffer for the second input |
yoffsets | 3b (aligned to 4b) offset for each lane in the ybuffer for the second input. LSB apply to first lane |
v16float fpshuffle16 | ( | v32float | xbuff, |
int | xstart, | ||
unsigned int | xoffsets, | ||
unsigned int | xoffsets_hi | ||
) |
Performs a floating point shuffle between lanes of xbuff.
xbuff | Input buffer of 32 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 4b offset for each lane, applied to the xbuffer. LSB apply to first lane |
xoffsets_hi | 4b offset for each lane, applied to the xbuffer. LSB apply to 8th lane |
v16float fpshuffle16 | ( | v16float | xbuff, |
int | xstart, | ||
unsigned int | xoffsets, | ||
unsigned int | xoffsets_hi | ||
) |
Performs a floating point shuffle between lanes of xbuff.
xbuff | Input buffer of 16 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 4b offset for each lane, applied to the xbuffer. LSB apply to first lane |
xoffsets_hi | 4b offset for each lane, applied to the xbuffer. LSB apply to 8th lane |
v8cfloat fpshuffle8 | ( | v16cfloat | xbuff, |
int | xstart, | ||
unsigned int | xoffsets | ||
) |
Performs a floating point shuffle between lanes of xbuff.
xbuff | Input buffer of 16 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 3b (aligned to 4b) offset for each lane, applied to the xbuffer. LSB apply to first lane |
v8cfloat fpshuffle8 | ( | v8cfloat | xbuff, |
int | xstart, | ||
unsigned int | xoffsets | ||
) |
Performs a floating point shuffle between lanes of xbuff.
xbuff | Input buffer of 8 elements with single precision |
xstart | Starting position offset applied to all lanes of input from X buffer |
xoffsets | 3b (aligned to 4b) offset for each lane, applied to the xbuffer. LSB apply to first lane |