mirror of
				https://github.com/hedge-dev/XenonRecomp.git
				synced 2025-11-04 06:47:09 +00:00 
			
		
		
		
	Fix a few conversion mistakes.
This commit is contained in:
		@@ -626,12 +626,12 @@ int main()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                case PPC_INST_MULHW:
 | 
					                case PPC_INST_MULHW:
 | 
				
			||||||
                    // TODO: might be having 32 bit truncation here
 | 
					                    // 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]);
 | 
					                    std::println(f, "\tctx.r{}.s64 = int64_t(ctx.r{}.s32 * ctx.r{}.s32) << 32;", insn.operands[0], insn.operands[1], insn.operands[2]);
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                case PPC_INST_MULHWU:
 | 
					                case PPC_INST_MULHWU:
 | 
				
			||||||
                    // TODO: might be having 32 bit truncation here
 | 
					                    // 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]);
 | 
					                    std::println(f, "\tctx.r{}.u64 = uint64_t(ctx.r{}.u32 * ctx.r{}.u32) << 32;", insn.operands[0], insn.operands[1], insn.operands[2]);
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                case PPC_INST_MULLD:
 | 
					                case PPC_INST_MULLD:
 | 
				
			||||||
@@ -687,7 +687,7 @@ int main()
 | 
				
			|||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                case PPC_INST_ORIS:
 | 
					                case PPC_INST_ORIS:
 | 
				
			||||||
                    std::println(f, "\tctx.r{}.u64 = ctx.r{}.u64 | {}", insn.operands[0], insn.operands[1], insn.operands[2] << 16);
 | 
					                    std::println(f, "\tctx.r{}.u64 = ctx.r{}.u64 | {};", insn.operands[0], insn.operands[1], insn.operands[2] << 16);
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                case PPC_INST_RLDICL:
 | 
					                case PPC_INST_RLDICL:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user