summaryrefslogtreecommitdiffstats
path: root/tests/incremental/issue-61530.rs
blob: edb3d60ba3f894372d0a76936d5f4ada45072fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![feature(repr_simd, platform_intrinsics)]

// revisions:rpass1 rpass2

#[repr(simd)]
struct I32x2(i32, i32);

extern "platform-intrinsic" {
    fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U;
}

fn main() {
    unsafe {
        const IDX: [u32; 2] = [0, 0];
        let _: I32x2 = simd_shuffle2(I32x2(1, 2), I32x2(3, 4), IDX);
        let _: I32x2 = simd_shuffle2(I32x2(1, 2), I32x2(3, 4), IDX);
    }
}