avoid adding risc instructions twice
that causes loops in the chain infinite loops in the code that are hard to debug closes #11
This commit is contained in:
@ -50,5 +50,10 @@ module Risc
|
||||
sl = @produced.next( 7 )
|
||||
assert_reg_to_slot( sl , :r1 , :r3 , 7 )
|
||||
end
|
||||
def test_label
|
||||
sl = @produced.next( 17 )
|
||||
assert_equal Risc::Label , sl.class
|
||||
assert_equal "return_label" , sl.name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
require_relative "../helper"
|
||||
require_relative "helper"
|
||||
|
||||
module Risc
|
||||
class TestReturnSequence < MiniTest::Test
|
Reference in New Issue
Block a user