From 2dffad61b8cd099c82f8d8cd4ee58829e59c43b4 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 21 Apr 2014 00:07:03 +0300 Subject: [PATCH] fix cp paste --- .../arm/{builder_b.rb => memory_access_builder.rb} | 0 lib/asm/arm/{builder_a.rb => normal_builder.rb} | 0 lib/asm/arm/{builder_d.rb => stack_builder.rb} | 0 test/extern_test.rb | 11 ++++------- 4 files changed, 4 insertions(+), 7 deletions(-) rename lib/asm/arm/{builder_b.rb => memory_access_builder.rb} (100%) rename lib/asm/arm/{builder_a.rb => normal_builder.rb} (100%) rename lib/asm/arm/{builder_d.rb => stack_builder.rb} (100%) 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)