Commit 2f3b40a7 by Andrew Pinski Committed by Naveen H.S

abitest.S (LABEL_TEST_FUNC_RETURN): Load testfunc_ptr as 32bit for ILP32 and 64bit for LP64.

	* 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
parent b077669c
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
......
......@@ -2,6 +2,13 @@
.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
......@@ -48,7 +55,7 @@ myfunc:
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment