pub fn xperm8_32(rs1: u32, rs2: u32) -> u32🔬This is a nightly-only experimental API. (
riscv_ext_intrinsics #114544)Available on target feature
zbkx and (RISC-V RV32) only.Expand description
Byte-wise lookup of indices into a vector in registers.
The xperm8 instruction operates on bytes. The rs1 register contains a vector of 4 8-bit elements. The rs2 register contains a vector of 4 8-bit indexes. The result is each element in rs2 replaced by the indexed element in rs1, or zero if the index into rs2 is out of bounds.
Source: RISC-V Cryptography Extensions Volume I: Scalar & Entropy Source Instructions
Version: v1.0.1
Section: 3.47