You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is unfortunate since one could probably use e.g. extern {#[link_name = "llvm.sqrt.f32"] fn vsqrt(x: f32x4); } as a hack to be able to use vector operations that aren't provided in any other way.
huonw
added a commit
to huonw/rust
that referenced
this issue
Jan 16, 2015
This stops the compiler ICEing on the use of SIMD types in FFI signatures. It emits correct code for LLVM intrinsics, but I am quite unsure about the ABI handling in general so I've added a new feature gate `simd_ffi` to try to ensure people don't use it without realising there's a non-trivial risk of codegen brokenness.
Closes#20043.
Example code
This fails with:
The text was updated successfully, but these errors were encountered: