large test changes due to change in cc
calling convention does affect less than before, but still a LOT
This commit is contained in:
@ -7,12 +7,10 @@ module Risc
|
||||
def setup
|
||||
super
|
||||
@input = "r = 5.div4"
|
||||
@expect = [LoadConstant, LoadConstant, SlotToReg, RegToSlot, RegToSlot,
|
||||
SlotToReg, SlotToReg, RegToSlot, SlotToReg, SlotToReg,
|
||||
RegToSlot, RegToSlot, SlotToReg, RegToSlot, LoadConstant,
|
||||
SlotToReg, RegToSlot, LoadConstant, SlotToReg, RegToSlot,
|
||||
SlotToReg, FunctionCall, Label, SlotToReg, SlotToReg,
|
||||
RegToSlot]
|
||||
@expect = [LoadConstant, LoadConstant, SlotToReg, SlotToReg, RegToSlot,
|
||||
RegToSlot, RegToSlot, RegToSlot, LoadConstant, SlotToReg,
|
||||
RegToSlot, LoadConstant, SlotToReg, RegToSlot, SlotToReg,
|
||||
FunctionCall, Label, SlotToReg, SlotToReg, RegToSlot]
|
||||
end
|
||||
def test_local_assign_instructions
|
||||
assert_nil msg = check_nil , msg
|
||||
@ -20,7 +18,7 @@ module Risc
|
||||
|
||||
def test_constant_load
|
||||
produced = produce_body
|
||||
load = produced.next(14)
|
||||
load = produced.next(8)
|
||||
assert_equal LoadConstant , load.class
|
||||
assert_equal 5 , load.constant.value
|
||||
end
|
||||
|
Reference in New Issue
Block a user