Skip to main content

reg_is_reserved

Function reg_is_reserved 

Source
pub const fn reg_is_reserved(x: u8) -> bool
Expand description

True iff x is a reserved register (x16..x31 — they do not exist in the RV64E base) — as opposed to x0, which also lacks a slot but is valid. Drives the reserved-encoding (illegal) check in both engines.