Function _mm256_insert_epi16

#[target_feature(enable = "avx")]
pub const fn _mm256_insert_epi16(a: __m256i, i: i16, INDEX: i32) -> __m256i

Copies a to result, and inserts the 16-bit integer i into result at the location specified by index.

Intel's documentation