From ff69e8cab318101843cd8b49a0cb04df9763e10f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 22 Nov 2020 22:14:23 +0100 Subject: Generalize Add / Mul, Integer promotion, tests --- asm/intel64/encode.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'asm') diff --git a/asm/intel64/encode.cpp b/asm/intel64/encode.cpp index 1cc1a6d..6118743 100644 --- a/asm/intel64/encode.cpp +++ b/asm/intel64/encode.cpp @@ -175,6 +175,8 @@ void Asm::toMachineCode(const FlowGraph::Graph& graph, Segment& segment) segment.push_back(makeLoadValue(operands[1], graph)); segment.append(parseAsm("neg eax")); segment.push_back(makeStoreValue(operands[0], graph)); + } else if (op.type() == FlowGraph::UnaryOperationType::Resize) { + throw std::runtime_error("ICE: Asm: Unsupported unary operation type: Resize"s); } else throw std::runtime_error("ICE: Asm: Unsupported unary operation type: "s + std::to_string(static_cast(op.type()))); -- cgit v1.2.3