interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / cpufeatures / tests / loongarch64.rs

20 lines · 444 bytes Raw Blame History
1//! LoongArch64 tests
2
3#![cfg(target_arch = "loongarch64")]
4
5cpufeatures::new!(
6 lacaps, "cpucfg", "lam", "ual", "fpu", "lsx", "lasx", "crc32", "complex", "crypto", "lvz",
7 "lbt.x86", "lbt.arm", "lbt.mips", "ptw"
8);
9
10#[test]
11fn init() {
12 let token: lacaps::InitToken = lacaps::init();
13 assert_eq!(token.get(), lacaps::get());
14}
15
16#[test]
17fn init_get() {
18 let (token, val) = lacaps::init_get();
19 assert_eq!(val, token.get());
20}