diff options
| author | Jack Palevich <jackpal@google.com> | 2009-05-13 16:24:17 -0700 |
|---|---|---|
| committer | Jack Palevich <jackpal@google.com> | 2009-05-13 19:51:03 -0700 |
| commit | a65356109772b04283d18d21dd5455e825ba8c25 (patch) | |
| tree | 73a7912b6376e9a3d034da9bbaef064b9f484108 /libacc/test | |
| parent | 546b2249eff4d95622c4bab0698ebf290c9ed836 (diff) | |
| download | system_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/test')
| -rwxr-xr-x | libacc/test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libacc/test b/libacc/test index 8bf33c8..0b767da 100755 --- a/libacc/test +++ b/libacc/test @@ -1,3 +1,3 @@ #!/bin/sh -g++ acc.cpp -g -ldl -o tests/acc && tests/acc tests/otcc.c -a x86 -d tests/otcc.out && diff tests/otcc.out tests/otcc.out-orig -tests/acc tests/simplest.c +g++ acc.cpp disassem.cpp -g -ldl -o tests/acc && tests/acc tests/otcc.c -a x86 -d tests/otcc.out && diff tests/otcc.out tests/otcc.out-orig +tests/acc -S tests/returnval.c |
