diff --git a/lib/asm/arm/builder_b.rb b/lib/asm/arm/memory_access_builder.rb similarity index 100% rename from lib/asm/arm/builder_b.rb rename to lib/asm/arm/memory_access_builder.rb diff --git a/lib/asm/arm/builder_a.rb b/lib/asm/arm/normal_builder.rb similarity index 100% rename from lib/asm/arm/builder_a.rb rename to lib/asm/arm/normal_builder.rb diff --git a/lib/asm/arm/builder_d.rb b/lib/asm/arm/stack_builder.rb similarity index 100% rename from lib/asm/arm/builder_d.rb rename to lib/asm/arm/stack_builder.rb diff --git a/test/extern_test.rb b/test/extern_test.rb index 1431300f..9129e5b9 100644 --- a/test/extern_test.rb +++ b/test/extern_test.rb @@ -10,13 +10,10 @@ class TestExtern < MiniTest::Test def test_generate_small @generator.instance_eval { - mov r0, 5 #1 - loop_start = label - loop_start.set! - subs r0, r0, 1 #2 - bne loop_start #3 - mov r7, 1 #4 - swi 0 #5 5 instruction x 4 == 20 + ldr r0, "hello world" #1 + bl :printf #2 + mov r7, 1 #3 + swi 0 #4 4 instruction x 4 == 16 } writer = Asm::ObjectWriter.new(Elf::Constants::TARGET_ARM)