]> git.lizzy.rs Git - rust.git/commitdiff
Simply two cfg attributes
authorMichael McConville <mmcco@mykolab.com>
Thu, 24 Dec 2015 03:31:53 +0000 (22:31 -0500)
committerMichael McConville <mmcco@mykolab.com>
Thu, 24 Dec 2015 03:31:53 +0000 (22:31 -0500)
src/test/run-make/simd-ffi/simd.rs

index c0c4b1e7f3f312e4516c38d1e2fea8368eedf4c1..49fec6f3619e4fa9c7ed48562281a8cfaf8d50e9 100644 (file)
@@ -47,11 +47,11 @@ pub fn foo(x: f32x4) -> f32x4 {
     fn integer(a: i32x4, b: i32x4) -> i32x4;
 
     // vmaxq_s32
-    #[cfg(any(target_arch = "arm"))]
+    #[cfg(target_arch = "arm")]
     #[link_name = "llvm.arm.neon.vmaxs.v4i32"]
     fn integer(a: i32x4, b: i32x4) -> i32x4;
     // vmaxq_s32
-    #[cfg(any(target_arch = "aarch64"))]
+    #[cfg(target_arch = "aarch64")]
     #[link_name = "llvm.aarch64.neon.maxs.v4i32"]
     fn integer(a: i32x4, b: i32x4) -> i32x4;