summaryrefslogtreecommitdiffstats
path: root/vendor/cpufeatures/tests/aarch64.rs
blob: 41a61233140c1afb6c3625534c5c7fa3e8f2005d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! ARM64 tests

#![cfg(target_arch = "aarch64")]

cpufeatures::new!(armcaps, "aes", "sha2", "sha3", "sm4");

#[test]
fn init() {
    let token: armcaps::InitToken = armcaps::init();
    assert_eq!(token.get(), armcaps::get());
}

#[test]
fn init_get() {
    let (token, val) = armcaps::init_get();
    assert_eq!(val, token.get());
}