We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ede8a74 commit 0733ed7Copy full SHA for 0733ed7
tests/run-make/simd-ffi/simd.rs
@@ -38,15 +38,13 @@ extern "C" {
38
#[link_name = "llvm.aarch64.neon.maxs.v4i32"]
39
fn integer(a: i32x4, b: i32x4) -> i32x4;
40
41
- // just some substitute foreign symbol, not an LLVM intrinsic; so
42
- // we still get type checking, but not as detailed as (ab)using
43
- // LLVM.
+ // Use a generic LLVM intrinsic to do type checking on other platforms
44
#[cfg(not(any(
45
- all(target_arch = "x86", target_feature = "sse2"),
46
- target_arch = "x86-64",
+ all(any(target_arch = "x86", target_arch = "x86-64"), target_feature = "sse2"),
47
target_arch = "arm",
48
target_arch = "aarch64"
49
)))]
+ #[link_name = "llvm.smax.v4i32"]
50
51
}
52
0 commit comments