From 134b586c5c75d586c6ae4ff8c691017a2ad6c613 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 May 2019 10:24:08 -0400 Subject: [PATCH] frontend/ir/ir_emitter: Amend arguments to conversion opcodes Accidentally caused within 967d1fcc8d6f60749a162a96b997439450fed687. That one's on me. My bad. --- src/frontend/ir/ir_emitter.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontend/ir/ir_emitter.cpp b/src/frontend/ir/ir_emitter.cpp index 1da60f94..ea274956 100644 --- a/src/frontend/ir/ir_emitter.cpp +++ b/src/frontend/ir/ir_emitter.cpp @@ -2195,9 +2195,9 @@ U32 IREmitter::FPSignedFixedToSingle(const U32U64& a, size_t fbits, FP::Rounding switch (a.GetType()) { case Type::U32: - return Inst(Opcode::FPFixedS32ToSingle, fbits_imm, rounding_imm); + return Inst(Opcode::FPFixedS32ToSingle, a, fbits_imm, rounding_imm); case Type::U64: - return Inst(Opcode::FPFixedS64ToSingle, fbits_imm, rounding_imm); + return Inst(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(Opcode::FPFixedU32ToSingle, fbits_imm, rounding_imm); + return Inst(Opcode::FPFixedU32ToSingle, a, fbits_imm, rounding_imm); case Type::U64: - return Inst(Opcode::FPFixedU64ToSingle, fbits_imm, rounding_imm); + return Inst(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(Opcode::FPFixedS32ToDouble, fbits_imm, rounding_imm); + return Inst(Opcode::FPFixedS32ToDouble, a, fbits_imm, rounding_imm); case Type::U64: - return Inst(Opcode::FPFixedS64ToDouble, fbits_imm, rounding_imm); + return Inst(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(Opcode::FPFixedU32ToDouble, fbits_imm, rounding_imm); + return Inst(Opcode::FPFixedU32ToDouble, a, fbits_imm, rounding_imm); case Type::U64: - return Inst(Opcode::FPFixedU64ToDouble, fbits_imm, rounding_imm); + return Inst(Opcode::FPFixedU64ToDouble, a, fbits_imm, rounding_imm); default: UNREACHABLE(); return U64{};