diff --git a/test/mom/test_return_call.rb b/test/mom/test_return_call.rb index 27b62c5a..a096e8c2 100644 --- a/test/mom/test_return_call.rb +++ b/test/mom/test_return_call.rb @@ -13,7 +13,7 @@ module Risc RegToSlot, LoadConstant, SlotToReg, RegToSlot, SlotToReg, LoadConstant , FunctionCall, Label, SlotToReg, SlotToReg, RegToSlot, SlotToReg , SlotToReg, RegToSlot, SlotToReg, SlotToReg, RegToSlot, SlotToReg , - Transfer, SlotToReg, FunctionReturn] + SlotToReg, FunctionReturn] end def test_return_instructions @@ -21,7 +21,7 @@ module Risc end def test_function_return produced = produce_body - assert_equal FunctionReturn , produced.next(38).class + assert_equal FunctionReturn , produced.next(37).class end def test_load_5 produced = produce_body diff --git a/test/mom/test_return_dynamic.rb b/test/mom/test_return_dynamic.rb index fbab41f3..07435f5f 100644 --- a/test/mom/test_return_dynamic.rb +++ b/test/mom/test_return_dynamic.rb @@ -19,7 +19,7 @@ module Risc SlotToReg, SlotToReg, RegToSlot, SlotToReg, SlotToReg, SlotToReg , RegToSlot, LoadConstant, SlotToReg, DynamicJump, SlotToReg, SlotToReg , RegToSlot, SlotToReg, SlotToReg, RegToSlot, SlotToReg, SlotToReg , - RegToSlot, SlotToReg, Transfer, SlotToReg, FunctionReturn] + RegToSlot, SlotToReg, SlotToReg, FunctionReturn] end def test_return_instructions @@ -27,7 +27,7 @@ module Risc end def test_function_return produced = produce_body - assert_equal FunctionReturn , produced.next(76).class + assert_equal FunctionReturn , produced.next(75).class end def test_cache_check produced = produce_body diff --git a/test/mom/test_return_simple.rb b/test/mom/test_return_simple.rb index 62e47010..778fa78e 100644 --- a/test/mom/test_return_simple.rb +++ b/test/mom/test_return_simple.rb @@ -8,7 +8,7 @@ module Risc super @input = "return 5" @expect = [LoadConstant, RegToSlot, SlotToReg, SlotToReg, RegToSlot, SlotToReg , - Transfer, SlotToReg, FunctionReturn] + SlotToReg, FunctionReturn] end def test_return_instructions @@ -16,7 +16,7 @@ module Risc end def test_function_return produced = produce_body - assert_equal FunctionReturn , produced.next(8).class + assert_equal FunctionReturn , produced.next(7).class end def test_load_5 produced = produce_body