starting on risc allocation
inserting allocator stage in method translation
This commit is contained in:
21
test/risc/test_callable_compiler1.rb
Normal file
21
test/risc/test_callable_compiler1.rb
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
Reference in New Issue
Block a user