fix mod4 name

really did div4
This commit is contained in:
Torsten Ruger
2018-04-19 10:00:55 +03:00
parent 8e1efa3993
commit 3a50b7dd0e
21 changed files with 41 additions and 39 deletions

View File

@ -8,7 +8,7 @@ module Vool
def setup
Risc.machine.boot
@ins = compile_first_method( "if(5.mod4) ; @a = 6 ; else; @a = 5 ; end")
@ins = compile_first_method( "if(5.div4) ; @a = 6 ; else; @a = 5 ; end")
end
def test_condition
@ -19,7 +19,7 @@ module Vool
end
def test_hoisted_dynamic_call
assert_equal SimpleCall , @ins.next(2).class
assert_equal :mod4 , @ins.next(2).method.name
assert_equal :div4 , @ins.next(2).method.name
end
def test_array
check_array [MessageSetup, ArgumentTransfer, SimpleCall, SlotLoad, TruthCheck, Label ,