Skip to content

Commit 695c899

Browse files
authored
cpufeatures: test NEON (#404)
Adds `neon` to the armcaps used in the test
1 parent 442176a commit 695c899

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cpufeatures/tests/aarch64.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
33
#![cfg(target_arch = "aarch64")]
44

5-
cpufeatures::new!(armcaps_aes_sha2_sha3, "aes", "sha2", "sha3");
5+
cpufeatures::new!(armcaps, "aes", "neon", "sha2", "sha3");
66

77
#[test]
88
fn init() {
9-
let token: armcaps_aes_sha2_sha3::InitToken = armcaps_aes_sha2_sha3::init();
10-
assert_eq!(token.get(), armcaps_aes_sha2_sha3::get());
9+
let token: armcaps::InitToken = armcaps::init();
10+
assert_eq!(token.get(), armcaps::get());
1111
}
1212

1313
#[test]
1414
fn init_get() {
15-
let (token, val) = armcaps_aes_sha2_sha3::init_get();
15+
let (token, val) = armcaps::init_get();
1616
assert_eq!(val, token.get());
1717
}

cpufeatures/tests/x86.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
33
#![cfg(any(target_arch = "x86", target_arch = "x86_64"))]
44

5-
cpufeatures::new!(cpuid_aes_sha, "aes", "sha");
5+
cpufeatures::new!(cpuid, "aes", "sha");
66

77
#[test]
88
fn init() {
9-
let token: cpuid_aes_sha::InitToken = cpuid_aes_sha::init();
10-
assert_eq!(token.get(), cpuid_aes_sha::get());
9+
let token: cpuid::InitToken = cpuid::init();
10+
assert_eq!(token.get(), cpuid::get());
1111
}
1212

1313
#[test]
1414
fn init_get() {
15-
let (token, val) = cpuid_aes_sha::init_get();
15+
let (token, val) = cpuid::init_get();
1616
assert_eq!(val, token.get());
1717
}

0 commit comments

Comments
 (0)