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

Function decode_illegal

crates/virtual-machine/tests/vm_decoder.rs:161–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160#[test]
161fn decode_illegal() {
162 // Opcode 0 is not a valid RISC-V opcode
163 let result = decode(0x0000_0000);
164 assert!(
165 matches!(result, Err(VmError::IllegalInstruction(0))),
166 "opcode 0 should be illegal, got {result:?}"
167 );
168}

Callers

nothing calls this directly

Calls 1

decodeFunction · 0.50

Tested by

no test coverage detected