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

Function rv64i_branches

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

Source from the content-addressed store, hash-verified

123#[test]
124fn rv64i_branches() {
125 assert_enc!(Beq::new(5, 6, 4), 0x00628263u32);
126 assert_enc!(Bne::new(5, 6, -4), 0xfe629ee3u32);
127 assert_enc!(Blt::new(5, 6, 4094), 0x7e62cfe3u32);
128 assert_enc!(Bge::new(5, 6, -4096), 0x8062d063u32);
129}
130
131#[test]
132fn rv64i_jump() {
133 assert_enc!(Jal::new(1, 4), 0x004000efu32);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected