frontend/ir/ir_emitter: Amend arguments to conversion opcodes

Accidentally caused within 967d1fcc8d6f60749a162a96b997439450fed687.
That one's on me. My bad.
This commit is contained in:
Lioncash 2019-05-02 10:24:08 -04:00 committed by MerryMage
parent 95d9baea67
commit 134b586c5c

View file

@ -2195,9 +2195,9 @@ U32 IREmitter::FPSignedFixedToSingle(const U32U64& a, size_t fbits, FP::Rounding
switch (a.GetType()) {
case Type::U32:
return Inst<U32>(Opcode::FPFixedS32ToSingle, fbits_imm, rounding_imm);
return Inst<U32>(Opcode::FPFixedS32ToSingle, a, fbits_imm, rounding_imm);
case Type::U64:
return Inst<U32>(Opcode::FPFixedS64ToSingle, fbits_imm, rounding_imm);
return Inst<U32>(Opcode::FPFixedS64ToSingle, a, fbits_imm, rounding_imm);
default:
UNREACHABLE();
return U32{};
@ -2212,9 +2212,9 @@ U32 IREmitter::FPUnsignedFixedToSingle(const U32U64& a, size_t fbits, FP::Roundi
switch (a.GetType()) {
case Type::U32:
return Inst<U32>(Opcode::FPFixedU32ToSingle, fbits_imm, rounding_imm);
return Inst<U32>(Opcode::FPFixedU32ToSingle, a, fbits_imm, rounding_imm);
case Type::U64:
return Inst<U32>(Opcode::FPFixedU64ToSingle, fbits_imm, rounding_imm);
return Inst<U32>(Opcode::FPFixedU64ToSingle, a, fbits_imm, rounding_imm);
default:
UNREACHABLE();
return U32{};
@ -2229,9 +2229,9 @@ U64 IREmitter::FPSignedFixedToDouble(const U32U64& a, size_t fbits, FP::Rounding
switch (a.GetType()) {
case Type::U32:
return Inst<U64>(Opcode::FPFixedS32ToDouble, fbits_imm, rounding_imm);
return Inst<U64>(Opcode::FPFixedS32ToDouble, a, fbits_imm, rounding_imm);
case Type::U64:
return Inst<U64>(Opcode::FPFixedS64ToDouble, fbits_imm, rounding_imm);
return Inst<U64>(Opcode::FPFixedS64ToDouble, a, fbits_imm, rounding_imm);
default:
UNREACHABLE();
return U64{};
@ -2246,9 +2246,9 @@ U64 IREmitter::FPUnsignedFixedToDouble(const U32U64& a, size_t fbits, FP::Roundi
switch (a.GetType()) {
case Type::U32:
return Inst<U64>(Opcode::FPFixedU32ToDouble, fbits_imm, rounding_imm);
return Inst<U64>(Opcode::FPFixedU32ToDouble, a, fbits_imm, rounding_imm);
case Type::U64:
return Inst<U64>(Opcode::FPFixedU64ToDouble, fbits_imm, rounding_imm);
return Inst<U64>(Opcode::FPFixedU64ToDouble, a, fbits_imm, rounding_imm);
default:
UNREACHABLE();
return U64{};