Fixed all after changing argument handling
arguments are now fully inlined into the message locals next
This commit is contained in:
@ -7,7 +7,7 @@ module Risc
|
||||
def setup
|
||||
super
|
||||
@input = "arg = 5;return"
|
||||
@expect = [LoadConstant, SlotToReg, RegToSlot, LoadConstant, RegToSlot, Branch]
|
||||
@expect = [LoadConstant, RegToSlot, LoadConstant, RegToSlot, Branch]
|
||||
end
|
||||
def test_local_assign_instructions
|
||||
assert_nil msg = check_nil , msg
|
||||
@ -25,7 +25,7 @@ module Risc
|
||||
def test_load_args_from_message
|
||||
produced = produce_body
|
||||
assert_equal :r0 , produced.next.array.symbol , produced.next.to_rxf[0..200]
|
||||
assert_equal 3 , produced.next.index , produced.next.to_rxf[0..200]
|
||||
assert_equal 9 , produced.next.index , produced.next.to_rxf[0..200]
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user