fix integer plus

mostly forgot the return sequence
This commit is contained in:
Torsten Ruger
2018-04-01 14:56:01 +03:00
parent 8acfda457f
commit 10fa61aa9f
2 changed files with 13 additions and 4 deletions

View File

@ -24,7 +24,11 @@ module Risc
SlotToReg, RegToSlot, SlotToReg, LoadConstant, FunctionCall,
Label, SlotToReg, SlotToReg, SlotToReg, SlotToReg,
SlotToReg, OperatorInstruction, LoadConstant, SlotToReg, SlotToReg,
RegToSlot, RegToSlot, RegToSlot, Label, NilClass]
RegToSlot, RegToSlot, RegToSlot, SlotToReg, SlotToReg,
RegToSlot, SlotToReg, SlotToReg, FunctionReturn, SlotToReg,
SlotToReg, RegToSlot, SlotToReg, SlotToReg, RegToSlot,
SlotToReg, SlotToReg, RegToSlot, SlotToReg, SlotToReg,
FunctionReturn, Transfer, Syscall, NilClass]
assert_equal Parfait::Integer , get_return.class
assert_equal 10 , get_return.value
end
@ -99,5 +103,10 @@ module Risc
assert_equal 5 , sl.index
assert_equal :r4 , sl.register.symbol
end
def test_sys
sys = ticks(88)
assert_equal Syscall , sys.class
assert_equal :exit , sys.name
end
end
end