__lsx_vreplgr2vr_h

LSX intrinsic · group: Misc

Synopsis

__m128i __lsx_vreplgr2vr_h (int val)
#include <lsxintrin.h>
Instruction: vreplgr2vr.h vr, r
CPU Flags: LSX

Description

Broadcast the low 16 bits of val to all lanes of dst.

Operation

for (int i = 0; i < 8; i++) {
  dst.half[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 0.5(1/2)
2K3000 LA364E N/A 1

All intrinsics in alphabetical order