Only run SIMD tests on x86

This commit is contained in:
Oliver Scherer 2019-04-07 21:46:39 +02:00
parent 54ea7f726e
commit 01e83943f9
6 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,5 @@
// only-x86_64
#[cfg(target_arch = "x86")]
use std::arch::x86::*;
#[cfg(target_arch = "x86_64")]

View file

@ -1,5 +1,5 @@
error: argument 3 is required to be a constant
--> $DIR/const_arg_local.rs:8:5
--> $DIR/const_arg_local.rs:10:5
|
LL | _mm_clmulepi64_si128(a, b, imm8)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View file

@ -1,3 +1,5 @@
// only-x86_64
#[cfg(target_arch = "x86")]
use std::arch::x86::*;
#[cfg(target_arch = "x86_64")]

View file

@ -1,5 +1,5 @@
error: argument 3 is required to be a constant
--> $DIR/const_arg_promotable.rs:7:5
--> $DIR/const_arg_promotable.rs:9:5
|
LL | _mm_clmulepi64_si128(a, b, *&mut 42)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View file

@ -1,3 +1,5 @@
// only-x86_64
#[cfg(target_arch = "x86")]
use std::arch::x86::*;
#[cfg(target_arch = "x86_64")]

View file

@ -1,5 +1,5 @@
error: argument 3 is required to be a constant
--> $DIR/const_arg_wrapper.rs:7:5
--> $DIR/const_arg_wrapper.rs:9:5
|
LL | _mm_clmulepi64_si128(a, b, imm8)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^