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

Function rv64m

crates/asm-to-binary/tests/asm_encoding.rs:160–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159// --- RV64M ---
160
161#[test]
162fn rv64m() {
163 assert_enc!(Mul::new(10, 11, 12), 0x02c58533u32);
164 assert_enc!(Div::new(10, 11, 12), 0x02c5c533u32);
165 assert_enc!(Divu::new(10, 11, 12), 0x02c5d533u32);
166 assert_enc!(Rem::new(10, 11, 12), 0x02c5e533u32);
167 assert_enc!(Remu::new(10, 11, 12), 0x02c5f533u32);
168 assert_enc!(Mulw::new(10, 11, 12), 0x02c5853bu32);
169 assert_enc!(Divw::new(10, 11, 12), 0x02c5c53bu32);
170}
171

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected