mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-18 17:01:31 -06:00
Use U64 for U64 value. (#4246)
This commit is contained in:
parent
1f50aa3172
commit
e16a59be82
@ -196,7 +196,7 @@ void FoldUnpack32x2(IR::Block& block, IR::Inst& inst, IR::Opcode reverse) {
|
||||
const IR::Value value{inst.Arg(0)};
|
||||
if (value.IsImmediate()) {
|
||||
IR::IREmitter ir{block, IR::Block::InstructionList::s_iterator_to(inst)};
|
||||
const auto value_lo = ir.Imm32(value.U32());
|
||||
const auto value_lo = ir.Imm32(static_cast<u32>(value.U64()));
|
||||
const auto value_hi = ir.Imm32(static_cast<u32>(value.U64() >> 32));
|
||||
inst.ReplaceUsesWithAndRemove(ir.CompositeConstruct(value_lo, value_hi));
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user