Skip to content

Commit 75f3faf

Browse files
committed
Add test.
1 parent 48af94c commit 75f3faf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/ui/simd/issue-105439.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This is used to ICE with MIR inlining enabled due to an invalid bitcast.
2+
// run-pass
3+
// compile-flags: -O -Zmir-opt-level=3
4+
#![feature(portable_simd)]
5+
6+
use std::simd::Simd;
7+
8+
fn main() {
9+
let a = Simd::from_array([0, 4, 1, 5]);
10+
let b = Simd::from_array([2, 6, 3, 7]);
11+
let (x, y) = a.deinterleave(b);
12+
assert_eq!(x.to_array(), [0, 1, 2, 3]);
13+
assert_eq!(y.to_array(), [4, 5, 6, 7]);
14+
}

0 commit comments

Comments
 (0)