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

Function insn_is_load

crates/virtual-machine/src/cpu/hazard_unit.rs:76–78  ·  view source on GitHub ↗

True when the instruction is a (potentially FP) memory load.

(insn: &DecodedInsn)

Source from the content-addressed store, hash-verified

74pub fn insn_is_atomic(insn: &DecodedInsn) -> bool {
75 matches!(insn, DecodedInsn::Atomic { .. })
76}
77
78/// True when the destination is an FP register. FP-to-int converts, compares, and
79/// `fmv.x`/`fclass` (funct5 below) write integer rd; FP-forwarding those starves the consumer.
80pub fn insn_is_fp_dest(insn: &DecodedInsn) -> bool {
81 match insn {

Callers 1

stage_idMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected