fix div4 and tests

also bug in reduce_int, compiler not carried through
This commit is contained in:
2020-03-08 12:14:53 +02:00
parent eed9ba082f
commit 22d513d895
4 changed files with 16 additions and 14 deletions

View File

@ -20,6 +20,7 @@ module Risc
def test_reduce_int
ins = @int.reduce_int
assert_equal RegisterValue , ins.class
assert ins.compiler
assert_equal SlotToReg , @compiler.current.class
assert_equal Parfait::Integer.integer_index , @compiler.current.index
assert_equal :"id_456.data_1" , ins.symbol