add register names to allocator

make platform instantiate it
basic plumbing
This commit is contained in:
2020-03-18 15:27:40 +02:00
parent 500df01425
commit 8df1b8126f
5 changed files with 32 additions and 16 deletions

View File

@ -12,5 +12,9 @@ module Risc
def test_factory_raise
assert_raises{ Platform.for("NotArm")}
end
def test_allocate
allocator = Platform.new.allocator(FakeCompiler.new)
assert_equal FakeCompiler , allocator.compiler.class
end
end
end