MCPcopy Create free account
hub / github.com/OFFTKP/felix86 / C_SW

Method C_SW

external/biscuit/src/assembler_compressed.cpp:583–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583void Assembler::C_SW(GPR rs2, uint32_t imm, GPR rs1) noexcept {
584 BISCUIT_ASSERT(imm <= 124);
585 BISCUIT_ASSERT(imm % 4 == 0);
586
587 imm &= 0x7C;
588 const auto new_imm = ((imm & 0b0100) << 5) | (imm & 0x78);
589 EmitCompressedStore(m_buffer, 0b110, new_imm, rs1, rs2, 0b00);
590}
591
592void Assembler::C_SWSP(GPR rs, uint32_t imm) noexcept {
593 BISCUIT_ASSERT(imm <= 252);

Callers 1

Calls 1

EmitCompressedStoreFunction · 0.85

Tested by

no test coverage detected