summaryrefslogtreecommitdiffstats
path: root/libacc/tests
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-05-13 16:24:17 -0700
committerJack Palevich <jackpal@google.com>2009-05-13 19:51:03 -0700
commita65356109772b04283d18d21dd5455e825ba8c25 (patch)
tree73a7912b6376e9a3d034da9bbaef064b9f484108 /libacc/tests
parent546b2249eff4d95622c4bab0698ebf290c9ed836 (diff)
downloadsystem_core-a65356109772b04283d18d21dd5455e825ba8c25.zip
system_core-a65356109772b04283d18d21dd5455e825ba8c25.tar.gz
system_core-a65356109772b04283d18d21dd5455e825ba8c25.tar.bz2
ARM codegen: Add disassembler, implement return
This program works: main() { return 42; } The disassembler was borrowed from codeflinger, and just modified enough to compile under C++ without warnings. Implemented gsym Implemented a hack verison of li, only works for -256..255 Implemented gjmp
Diffstat (limited to 'libacc/tests')
-rw-r--r--libacc/tests/otcc.out-origbin8591 -> 8591 bytes
-rw-r--r--libacc/tests/returnval.c3
2 files changed, 3 insertions, 0 deletions
diff --git a/libacc/tests/otcc.out-orig b/libacc/tests/otcc.out-orig
index 6b8bd59..fa14c72 100644
--- a/libacc/tests/otcc.out-orig
+++ b/libacc/tests/otcc.out-orig
Binary files differ
diff --git a/libacc/tests/returnval.c b/libacc/tests/returnval.c
new file mode 100644
index 0000000..3142fe2
--- /dev/null
+++ b/libacc/tests/returnval.c
@@ -0,0 +1,3 @@
+main() {
+ return 42;
+} \ No newline at end of file