diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-22 22:14:23 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-22 22:14:23 +0100 |
commit | ff69e8cab318101843cd8b49a0cb04df9763e10f (patch) | |
tree | 58778d0ba28264880df8bdf6bfe45766939c3af9 /asm | |
parent | ad3fd947005400c90f41baa4416a27d94b1bc157 (diff) |
Generalize Add / Mul, Integer promotion, tests
Diffstat (limited to 'asm')
-rw-r--r-- | asm/intel64/encode.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<int>(op.type()))); |