__lsx_vreplgr2vr_w
LSX intrinsic · group: Misc
Synopsis
__m128i __lsx_vreplgr2vr_w (int val)
#include <lsxintrin.h>
Instruction: vreplgr2vr.w vr, r
CPU Flags: LSX
Description
Broadcast the low 32 bits of val to all lanes of dst.
Operation
for (int i = 0; i < 4; i++) {
dst.word[i] = val;
}
Tested on real machine.
Latency and Throughput
| CPU | µarch | Latency | Throughput (IPC) |
|---|---|---|---|
| 3C5000 | LA464 | N/A | 1 |
| 3A6000 | LA664 | N/A | 1 |
| 3C6000 | LA664 | N/A | 1 |
| 2K1000LA | LA264 | N/A | 1 |
| 2K3000 | LA364E | N/A | 1 |