MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / csr_counters_wrap

Function csr_counters_wrap

crates/virtual-machine/tests/vm_csr.rs:170–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 assert_eq!(
169 csrs.read(addr::FCSR).expect("CSR access should succeed"),
170 fcsr_val
171 );
172}
173
174#[test]
175fn csr_accumulate_fflags() {
176 let mut csrs = CsrFile::new();
177
178 csrs.accumulate_fflags(0x01); // NX
179 assert_eq!(csrs.fflags, 0x01);
180
181 csrs.accumulate_fflags(0x10); // NV
182 assert_eq!(csrs.fflags, 0x11);

Callers

nothing calls this directly

Calls 1

increment_cycleMethod · 0.80

Tested by

no test coverage detected