rubyx/test/risc/test_callable_compiler1.rb
Torsten 2e109a16dc starting on risc allocation
inserting allocator stage in method translation
2020-03-22 14:31:43 +02:00

22 lines
413 B
Ruby

require_relative "../helper"
module Risc
class TestCallableCompiler1 < MiniTest::Test
include SolCompile
def setup
@compiler = compile_main("return 5").to_risc
@platform = Platform.for(:arm)
end
def test_init
@compiler.risc_instructions.each do |ins|
puts ins.to_s
end
end
def test_1
@compiler.translate_method( @platform , [])
end
end
end