backend/arm64: Implement Pack2x32To1x64
This commit is contained in:
parent
ff9b92c791
commit
fe4e864e4c
1 changed files with 9 additions and 4 deletions
|
@ -21,10 +21,15 @@ using namespace oaknut::util;
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
void EmitIR<IR::Opcode::Pack2x32To1x64>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
void EmitIR<IR::Opcode::Pack2x32To1x64>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||||
(void)code;
|
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||||
(void)ctx;
|
|
||||||
(void)inst;
|
auto Wlo = ctx.reg_alloc.ReadW(args[0]);
|
||||||
ASSERT_FALSE("Unimplemented");
|
auto Whi = ctx.reg_alloc.ReadW(args[1]);
|
||||||
|
auto Xresult = ctx.reg_alloc.WriteX(inst);
|
||||||
|
RegAlloc::Realize(Wlo, Whi, Xresult);
|
||||||
|
|
||||||
|
code.MOV(Xresult->toW(), Wlo); // TODO: Move eliminiation
|
||||||
|
code.BFI(Xresult, Whi->toX(), 32, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|
Loading…
Reference in a new issue