__lasx_xvldrepl_h

LASX intrinsic · group: Memory Load & Store

Synopsis

__m256i __lasx_xvldrepl_h (void * addr, imm_n1024_1023 offset)
#include <lasxintrin.h>
Instruction: xvldrepl.h xr, r, imm
CPU Flags: LASX

Description

Read 16-bit data from memory address addr + offset, replicate the data to all vector lanes and save into dst. Address misalignment does not raise an exception. The offset operand is a byte offset, matching the assembly immediate; the encoded instruction stores it as a scaled immediate for wider elements.

Operation

u16 data = memory_load(16, addr + offset);
for (int i = 0; i < 16; i++) {
  dst.half[i] = data;
}

All intrinsics in alphabetical order