make operator_instruction single ass

create result register automatically
usually not used, but register allocation will sort that
This commit is contained in:
2020-03-14 12:22:37 +02:00
parent 1378745907
commit 61fc8a3991
4 changed files with 43 additions and 9 deletions

View File

@ -23,6 +23,7 @@ module Risc
extra = {} unless extra
@extra = extra
@symbol = reg
raise "not Symbol #{symbol}:#{symbol.class}" unless symbol.is_a?(Symbol)
raise "Not Hash #{extra}" unless extra.is_a?(Hash)
known_type(type)
end