test that register allocation allocates risc names
This commit is contained in:
parent
bc60f02f66
commit
1970a3ee6e
@ -10,12 +10,19 @@ module Risc
|
|||||||
end
|
end
|
||||||
def test_init
|
def test_init
|
||||||
@compiler.risc_instructions.each do |ins|
|
@compiler.risc_instructions.each do |ins|
|
||||||
puts ins.to_s
|
ins.register_names.each do |name|
|
||||||
|
assert ! RegisterValue.look_like_reg(name)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_1
|
def test_1
|
||||||
@compiler.translate_method( @platform , [])
|
@compiler.translate_method( @platform , [])
|
||||||
|
@compiler.risc_instructions.each do |ins|
|
||||||
|
ins.register_names.each do |name|
|
||||||
|
assert RegisterValue.look_like_reg(name)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user