Make the AAPCS64 function return tests more robust.
authorYufeng Zhang <yufeng.zhang@arm.com>
Tue, 24 Jun 2014 16:33:45 +0000 (16:33 +0000)
committerYufeng Zhang <yufeng@gcc.gnu.org>
Tue, 24 Jun 2014 16:33:45 +0000 (16:33 +0000)
commit84e0f57e35738500e44fd21753e31295d4700bfb
treec5373ab1c3e2da02d9311e1b630a245d97e29186
parent3fa591d4b43316e7b7f8d46781793d96893d3374
Make the AAPCS64 function return tests more robust.

gcc/testsuite

* gcc.target/aarch64/aapcs64/abitest-2.h (saved_return_address): New
global variable.
(FUNC_VAL_CHECK): Update to call myfunc via the 'ret' instruction,
instead of calling sequentially in the C code.
* gcc.target/aarch64/aapcs64/abitest.S (LABEL_TEST_FUNC_RETURN): Store
saved_return_address to the stack frame where LR register was stored.
(saved_return_address): Declare weak.

From-SVN: r211954
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/aapcs64/abitest-2.h
gcc/testsuite/gcc.target/aarch64/aapcs64/abitest.S