rust/tests/incremental/issue-61530.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
395 B
Rust
Raw Normal View History

#![feature(repr_simd, intrinsics)]
//@ revisions:rpass1 rpass2
#[repr(simd)]
struct I32x2(i32, i32);
extern "rust-intrinsic" {
fn simd_shuffle<T, I, U>(x: T, y: T, idx: I) -> U;
}
fn main() {
unsafe {
2021-05-12 15:08:45 +00:00
const IDX: [u32; 2] = [0, 0];
let _: I32x2 = simd_shuffle(I32x2(1, 2), I32x2(3, 4), IDX);
let _: I32x2 = simd_shuffle(I32x2(1, 2), I32x2(3, 4), IDX);
}
}