2022-02-21 20:41:52 -06:00
|
|
|
#![feature(platform_intrinsics, repr_simd)]
|
|
|
|
|
|
|
|
extern "platform-intrinsic" {
|
|
|
|
pub(crate) fn simd_reduce_any<T>(x: T) -> bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(simd)]
|
|
|
|
#[allow(non_camel_case_types)]
|
|
|
|
struct i32x2(i32, i32);
|
|
|
|
|
2022-06-19 22:33:59 -05:00
|
|
|
fn main() {
|
|
|
|
unsafe {
|
|
|
|
let x = i32x2(0, 1);
|
2022-07-11 06:44:55 -05:00
|
|
|
simd_reduce_any(x); //~ERROR: must be all-0-bits or all-1-bits
|
2022-06-19 22:33:59 -05:00
|
|
|
}
|
|
|
|
}
|