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

Function rv64i_shift_imm

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

Source from the content-addressed store, hash-verified

85#[test]
86fn rv64i_shift_imm() {
87 assert_enc!(Slli::new(10, 11, 5), 0x00559513u32);
88 assert_enc!(Srli::new(10, 11, 5), 0x0055d513u32);
89 assert_enc!(Srai::new(10, 11, 5), 0x4055d513u32);
90 assert_enc!(Slli::new(10, 11, 63), 0x03f59513u32);
91}
92
93#[test]
94fn rv64i_w_shift_imm() {
95 assert_enc!(Slliw::new(10, 11, 4), 0x0045951bu32);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected