__lasx_vext2xv_d_b
LASX intrinsic · group: Misc
Synopsis
__m256i __lasx_vext2xv_d_b (__m256i a)
#include <lsxintrin.h>
Instruction: vext2xv.d.b xr, xr
CPU Flags: LSX
Description
Sign-extend the lowest 4 8-bit elements of a to 64-bit elements.
Operation
for (int i = 0; i < 4; i++) {
dst.dword[i] = (s64)(s8)a.byte[i];
}
Tested on real machine.
Latency and Throughput
| CPU | µarch | Latency | Throughput (IPC) |
|---|---|---|---|
| 3C5000 | LA464 | 3 | 2 |
| 3A6000 | LA664 | 3 | 4 |
| 3C6000 | LA664 | 3 | 4 |