-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better simd platform intrinsic validation #1328
Labels
A-core-arch
Area: Necessary for full core::arch support
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Comments
bjorn3
added
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
A-core-arch
Area: Necessary for full core::arch support
labels
Dec 16, 2022
This was referenced Dec 16, 2022
#![crate_type = "lib"]
#![feature(repr_simd)]
#[derive(Copy, Clone)]
pub enum Unhab {}
#[repr(simd)]
#[derive(Copy, Clone)]
pub struct i64x4(i64, i64, i64, i64);
pub union UnionI64x4_ {
a: i64x4,
b: (),
c: i64x4,
d: Unhab,
e: ((), ()),
}
pub extern "C" fn test_UnionI64x4_() -> UnionI64x4_ {
loop {}
}
#[repr(C)]
pub union CUnionU128 {
a: u128,
}
|
That function uses a 256bit vector type as return value, which requires AVX. Cranelift doesn't yet support AVX. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-core-arch
Area: Necessary for full core::arch support
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
We currently crash on many misuses of the simd platform intrinsics.
The text was updated successfully, but these errors were encountered: