Skip to content

Commit 57ba2c3

Browse files
3forgnzlbg
authored andcommitted
verify with new stdarch
1 parent bb50967 commit 57ba2c3

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

src/api/minimal/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ macro_rules! impl_minimal_p {
215215
f,
216216
"{}<{}>(",
217217
stringify!($id),
218-
unsafe { crate::intrinsics::type_name::<T>() }
218+
crate::intrinsics::type_name::<T>()
219219
)?;
220220
for i in 0..$elem_count {
221221
if i > 0 {

verify/verify/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["gnzlbg <[email protected]>"]
55
edition = "2018"
66

77
[dev-dependencies]
8-
stdsimd-test = { git = "https://github.com/rust-lang-nursery/stdsimd.git" }
8+
stdarch-test = { git = "https://github.com/rust-lang/stdarch.git" }
99
packed_simd = { path = "../.." }
1010
cfg-if = "^0.1"
1111
paste = "^0.1.3"

verify/verify/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ vector APIs by disassembling the API at run-time and comparing the machine code
2222
generated against the desired one for a particular target and target features.
2323

2424
This is done by using the
25-
[`stdsimd-test`](https://github.com/rust-lang-nursery/stdsimd/tree/master/crates/stdsimd-test)
25+
[`stdarch-test`](https://github.com/rust-lang/stdarch/tree/master/crates/stdarch-test)
2626
crate, which exposes the `assert_instr` procedural macro. It is used like this:
2727

2828
```rust
@@ -46,8 +46,8 @@ unsafe fn rotate_right_variable(x: u64x8, v: u64x8) -> u64x8 {
4646

4747
The `assert_instr` procedural macro creates a test that contains a
4848
`#[inline(never)]` function that calls the API. It then gets a function pointer
49-
to this function, and calls `stdsimd_test::assert` with it, the function name,
50-
and the expected assembly instruction. `stdsimd_test` uses `objdump` or similar
49+
to this function, and calls `stdarch_test::assert` with it, the function name,
50+
and the expected assembly instruction. `stdarch_test` uses `objdump` or similar
5151
to disassemble itself, it then looks for the function address and name in the
5252
disassembly, and verifies that the machine code for the function contains the
5353
instruction.

verify/verify/src/api/math/float/mul_add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mod x86 {
33
mod f32x4 {
44
#![allow(unused)]
55
use packed_simd::*;
6-
use stdsimd_test::assert_instr;
6+
use stdarch_test::assert_instr;
77

88
#[inline]
99
#[target_feature(enable = "sse,fma")]

verify/verify/src/api/ops/vector_rotates/x86.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod u64x8 {
22
#![allow(unused)]
33
use packed_simd::*;
4-
use stdsimd_test::assert_instr;
4+
use stdarch_test::assert_instr;
55

66
#[inline]
77
#[target_feature(enable = "avx512f,avx512vl")]

verify/verify/src/api/reductions/mask/avx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Verification of the mask reduction API for `x86`/`x86_64`+`SSE2`
22
33
use packed_simd::*;
4-
use stdsimd_test::assert_instr;
4+
use stdarch_test::assert_instr;
55

66
macro_rules! verify {
77
($id:ident => $instr:tt) => {

verify/verify/src/api/reductions/mask/avx2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Verification of the mask reduction API for `x86`/`x86_64`+`SSE2`
22
33
use packed_simd::*;
4-
use stdsimd_test::assert_instr;
4+
use stdarch_test::assert_instr;
55

66
macro_rules! verify {
77
($id:ident => $instr:tt) => {

verify/verify/src/api/reductions/mask/sse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
#![allow(unused)]
44
use packed_simd::*;
5-
use stdsimd_test::assert_instr;
5+
use stdarch_test::assert_instr;
66

77
macro_rules! verify {
88
($id:ident => $instr:tt) => {

verify/verify/src/api/reductions/mask/sse2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Verification of the mask reduction API for `x86`/`x86_64`+`SSE2`
22
33
use packed_simd::*;
4-
use stdsimd_test::assert_instr;
4+
use stdarch_test::assert_instr;
55

66
macro_rules! verify {
77
($id:ident => $instr:tt) => {

verify/verify/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![deny(warnings, rust_2018_idioms)]
2-
#![cfg_attr(test, feature(avx512_target_feature, abi_vectorcall))]
2+
#![cfg_attr(test, feature(avx512_target_feature, abi_vectorcall, asm))]
33

44
#[cfg(test)]
55
mod api;

0 commit comments

Comments
 (0)