From 9d6ccc0593f52da00092baf9f79e56fdb907ecd7 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Thu, 12 Sep 2024 21:53:53 +0300 Subject: [PATCH] Add self note for the future. --- PowerRecomp/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerRecomp/main.cpp b/PowerRecomp/main.cpp index eb1caac..955448f 100644 --- a/PowerRecomp/main.cpp +++ b/PowerRecomp/main.cpp @@ -460,10 +460,12 @@ int main() break; case PPC_INST_MULHW: + // TODO: might be having 32 bit truncation here std::println(f, "\tctx.r{}.s64 = (ctx.r{}.s32 * ctx.r{}.s32) << 32;", insn.operands[0], insn.operands[1], insn.operands[2]); break; case PPC_INST_MULHWU: + // TODO: might be having 32 bit truncation here std::println(f, "\tctx.r{}.u64 = (ctx.r{}.u32 * ctx.r{}.u32) << 32;", insn.operands[0], insn.operands[1], insn.operands[2]); break;