We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c82e0df commit ede8a74Copy full SHA for ede8a74
tests/run-make/simd-ffi/simd.rs
@@ -25,7 +25,7 @@ pub struct i32x4([i32; 4]);
25
26
extern "C" {
27
// _mm_sll_epi32
28
- #[cfg(any(target_arch = "x86", target_arch = "x86-64"))]
+ #[cfg(all(any(target_arch = "x86", target_arch = "x86-64"), target_feature = "sse2"))]
29
#[link_name = "llvm.x86.sse2.psll.d"]
30
fn integer(a: i32x4, b: i32x4) -> i32x4;
31
@@ -42,7 +42,7 @@ extern "C" {
42
// we still get type checking, but not as detailed as (ab)using
43
// LLVM.
44
#[cfg(not(any(
45
- target_arch = "x86",
+ all(target_arch = "x86", target_feature = "sse2"),
46
target_arch = "x86-64",
47
target_arch = "arm",
48
target_arch = "aarch64"
0 commit comments