* gcc.target/aarch64/aapcs64/abitest.S (LABEL_TEST_FUNC_RETURN): Load
testfunc_ptr as 32bit for ILP32 and 64bit for LP64.
Co-Authored-By: Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
From-SVN: r219832
+2015-01-15 Andrew Pinski <apinski@cavium.com>
+ Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
+
+ * gcc.target/aarch64/aapcs64/abitest.S (LABEL_TEST_FUNC_RETURN): Load
+ testfunc_ptr as 32bit for ILP32 and 64bit for LP64.
+
2015-01-18 Andre Vehreschild <vehre@gmx.de>
PR fortran/60255
.global myfunc
.type dumpregs,%function
.type myfunc,%function
+
+#ifdef __LP64__
+#define PTR_REG(n) x##n
+#else
+#define PTR_REG(n) w##n
+#endif
+
dumpregs:
myfunc:
mov x16, sp
LABEL_TEST_FUNC_RETURN:
adrp x9, testfunc_ptr
add x9, x9, :lo12:testfunc_ptr
- ldr x9, [x9, #0]
+ ldr PTR_REG(9), [x9, #0]
blr x9 // function return value test
adrp x9, saved_return_address
add x9, x9, :lo12:saved_return_address