reduced label mess

This commit is contained in:
Torsten Ruger
2014-04-23 13:52:34 +03:00
parent bc60e1d265
commit 69c1f8fccc
7 changed files with 50 additions and 69 deletions

View File

@ -15,9 +15,9 @@ class TestSmallProg < MiniTest::Test
def test_loop
@generator.instance_eval {
mov r0, 5 #1
loop_start = label!
start = label!(:loop_start)
subs r0, r0, 1 #2
bne loop_start #3
bne start #3
mov r7, 1 #4
swi 0 #5 5 instructions
}