Skip to content

Commit 0733ed7

Browse files
committed
tests/run-make/simd-ffi: use a generic LLVM intrinsics ...
... to do more comprehensive type checking
1 parent ede8a74 commit 0733ed7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/run-make/simd-ffi/simd.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ extern "C" {
3838
#[link_name = "llvm.aarch64.neon.maxs.v4i32"]
3939
fn integer(a: i32x4, b: i32x4) -> i32x4;
4040

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.
41+
// Use a generic LLVM intrinsic to do type checking on other platforms
4442
#[cfg(not(any(
45-
all(target_arch = "x86", target_feature = "sse2"),
46-
target_arch = "x86-64",
43+
all(any(target_arch = "x86", target_arch = "x86-64"), target_feature = "sse2"),
4744
target_arch = "arm",
4845
target_arch = "aarch64"
4946
)))]
47+
#[link_name = "llvm.smax.v4i32"]
5048
fn integer(a: i32x4, b: i32x4) -> i32x4;
5149
}
5250

0 commit comments

Comments
 (0)