summaryrefslogtreecommitdiff
path: root/test_arm.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-02-23 22:17:43 -0800
committerMichael Pavone <pavone@retrodev.com>2014-02-23 22:17:43 -0800
commit3bd0223c1d99e76292db756c454c77e29eb4f7dc (patch)
tree8822b3589d5b899e0c2c419178178d9ed31f7258 /test_arm.c
parent16a6bd520191171fe6741c45eb823a4f0053e14a (diff)
Fix ARM code generation and test program
Diffstat (limited to 'test_arm.c')
-rw-r--r--test_arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_arm.c b/test_arm.c
index 48f7971..4e2aee4 100644
--- a/test_arm.c
+++ b/test_arm.c
@@ -20,7 +20,7 @@ int main(int arc, char **argv)
bl(&code, fib);
add(&code, r0, r4, r0, NO_COND);
popm(&code, LR | R4);
- bx(&code, LR);
+ bx(&code, lr);
fib_fun fibc = (fib_fun)fib;
printf("fib(10): %d\n", fibc(10));