From 3bd0223c1d99e76292db756c454c77e29eb4f7dc Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 23 Feb 2014 22:17:43 -0800 Subject: Fix ARM code generation and test program --- test_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test_arm.c') 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)); -- cgit v1.2.3