increase binary_code size to 32
save a few jump, adds some size to binary 16 just seemed kind of small
This commit is contained in:
@ -13,13 +13,13 @@ module Risc
|
||||
#show_main_ticks # get output of what is in main
|
||||
check_main_chain [LoadConstant, SlotToReg, RegToSlot, SlotToReg, SlotToReg,
|
||||
LoadConstant, OperatorInstruction, IsZero, LoadConstant, OperatorInstruction, # 10
|
||||
IsZero, LoadConstant, SlotToReg, Branch, RegToSlot,
|
||||
Branch, SlotToReg, SlotToReg, LoadConstant, OperatorInstruction, # 20
|
||||
IsZero, SlotToReg, SlotToReg, RegToSlot, Branch,
|
||||
SlotToReg, SlotToReg, RegToSlot, LoadConstant, SlotToReg, # 30
|
||||
RegToSlot, RegToSlot, Branch, SlotToReg, SlotToReg,
|
||||
SlotToReg, FunctionReturn, Transfer, SlotToReg, SlotToReg, # 40
|
||||
Syscall, NilClass, ]
|
||||
IsZero, LoadConstant, SlotToReg, RegToSlot, Branch,
|
||||
SlotToReg, SlotToReg, LoadConstant, OperatorInstruction, IsZero, # 20
|
||||
SlotToReg, SlotToReg, RegToSlot, Branch, SlotToReg,
|
||||
SlotToReg, RegToSlot, LoadConstant, SlotToReg, RegToSlot, # 30
|
||||
RegToSlot, SlotToReg, SlotToReg, SlotToReg, Branch,
|
||||
FunctionReturn, Transfer, SlotToReg, SlotToReg, Syscall, # 40
|
||||
NilClass, ]
|
||||
assert_kind_of Parfait::NilClass , get_return
|
||||
end
|
||||
def test_load_false_const
|
||||
@ -56,7 +56,7 @@ module Risc
|
||||
assert check.label.name.start_with?("merge_label") , check.label.name
|
||||
end
|
||||
def test_exit
|
||||
done = main_ticks(41)
|
||||
done = main_ticks(40)
|
||||
assert_equal Syscall , done.class
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user