10 lines
349 B
Rust
10 lines
349 B
Rust
// error-pattern: pointer to 1 byte starting at offset 9 is out-of-bounds
|
|
#![feature(portable_simd)]
|
|
use std::simd::*;
|
|
|
|
fn main() { unsafe {
|
|
let vec: &[i8] = &[10, 11, 12, 13, 14, 15, 16, 17, 18];
|
|
let idxs = Simd::from_array([9, 3, 0, 17]);
|
|
let _result = Simd::gather_select_unchecked(&vec, Mask::splat(true), idxs, Simd::splat(0));
|
|
} }
|