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

Function rv64i_loads

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

Source from the content-addressed store, hash-verified

102#[test]
103fn rv64i_loads() {
104 assert_enc!(Lb::new(5, 6, 0), 0x00030283u32);
105 assert_enc!(Lh::new(5, 6, 4), 0x00431283u32);
106 assert_enc!(Lw::new(5, 6, -8), 0xff832283u32);
107 assert_enc!(Ld::new(5, 6, 2047), 0x7ff33283u32);
108 assert_enc!(Lbu::new(5, 6, 128), 0x08034283u32);
109 assert_enc!(Lhu::new(5, 6, 128), 0x08035283u32);
110 assert_enc!(Lwu::new(5, 6, 128), 0x08036283u32);
111}
112
113#[test]
114fn rv64i_stores() {
115 assert_enc!(Sb::new(6, 5, 0), 0x00530023u32);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected