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

Method BCLRI

external/biscuit/src/assembler.cpp:1327–1336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325}
1326
1327void Assembler::BCLRI(GPR rd, GPR rs, uint32_t bit) noexcept {
1328 if (IsRV32(m_features)) {
1329 BISCUIT_ASSERT(bit <= 31);
1330 } else {
1331 BISCUIT_ASSERT(bit <= 63);
1332 }
1333
1334 const auto imm = (0b010010U << 6) | bit;
1335 EmitIType(m_buffer, imm, rs, 0b001, rd, 0b0010011);
1336}
1337
1338void Assembler::BEXT(GPR rd, GPR rs1, GPR rs2) noexcept {
1339 EmitRType(m_buffer, 0b0100100, rs2, rs1, 0b101, rd, 0b0110011);

Callers 3

FAST_HANDLEFunction · 0.80
EmitInstructionFunction · 0.80

Calls 2

IsRV32Function · 0.85
EmitITypeFunction · 0.85

Tested by

no test coverage detected