Skip to content

Commit

Permalink
Only run SIMD tests on x86
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 7, 2019
1 parent 54ea7f7 commit 01e8394
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/consts/const_arg_local.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// only-x86_64

#[cfg(target_arch = "x86")]
use std::arch::x86::*;
#[cfg(target_arch = "x86_64")]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const_arg_local.stderr
Original file line number Diff line number Diff line change
@@ -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)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/consts/const_arg_promotable.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// only-x86_64

#[cfg(target_arch = "x86")]
use std::arch::x86::*;
#[cfg(target_arch = "x86_64")]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const_arg_promotable.stderr
Original file line number Diff line number Diff line change
@@ -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)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/consts/const_arg_wrapper.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// only-x86_64

#[cfg(target_arch = "x86")]
use std::arch::x86::*;
#[cfg(target_arch = "x86_64")]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const_arg_wrapper.stderr
Original file line number Diff line number Diff line change
@@ -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)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 01e8394

Please sign in to comment.