emit_arm64_data_processing: Implement CountLeadingZeros
This commit is contained in:
parent
e921c397ac
commit
090e79add2
1 changed files with 6 additions and 8 deletions
|
@ -1246,18 +1246,16 @@ void EmitIR<IR::Opcode::ByteReverseDual>(oaknut::CodeGenerator& code, EmitContex
|
|||
|
||||
template<>
|
||||
void EmitIR<IR::Opcode::CountLeadingZeros32>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||
(void)code;
|
||||
(void)ctx;
|
||||
(void)inst;
|
||||
ASSERT_FALSE("Unimplemented");
|
||||
EmitTwoOp<32>(
|
||||
code, ctx, inst,
|
||||
[&](auto& Wresult, auto& Woperand) { code.CLZ(Wresult, Woperand); });
|
||||
}
|
||||
|
||||
template<>
|
||||
void EmitIR<IR::Opcode::CountLeadingZeros64>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||
(void)code;
|
||||
(void)ctx;
|
||||
(void)inst;
|
||||
ASSERT_FALSE("Unimplemented");
|
||||
EmitTwoOp<64>(
|
||||
code, ctx, inst,
|
||||
[&](auto& Xresult, auto& Xoperand) { code.CLZ(Xresult, Xoperand); });
|
||||
}
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Reference in a new issue