Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/cpufeatures/tests/loongarch64.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers 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 5 cpufeatures::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] 11 fn init() { 12 let token: lacaps::InitToken = lacaps::init(); 13 assert_eq!(token.get(), lacaps::get()); 14 } 15 16 #[test] 17 fn init_get() { 18 let (token, val) = lacaps::init_get(); 19 assert_eq!(val, token.get()); 20 }