backend/arm64: Implement LeastSignificantWord
This commit is contained in:
parent
7c86b06233
commit
163ed9b185
1 changed files with 7 additions and 4 deletions
|
@ -73,10 +73,13 @@ void EmitIR<IR::Opcode::Pack2x64To1x128>(oaknut::CodeGenerator& code, EmitContex
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
void EmitIR<IR::Opcode::LeastSignificantWord>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
void EmitIR<IR::Opcode::LeastSignificantWord>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||||
(void)code;
|
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||||
(void)ctx;
|
|
||||||
(void)inst;
|
auto Wresult = ctx.reg_alloc.WriteW(inst);
|
||||||
ASSERT_FALSE("Unimplemented");
|
auto Xoperand = ctx.reg_alloc.ReadX(args[0]);
|
||||||
|
RegAlloc::Realize(Wresult, Xoperand);
|
||||||
|
|
||||||
|
code.MOV(Wresult, Xoperand->toW()); // TODO: Zext elimination
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|
Loading…
Reference in a new issue