rs6000: Fix safe-indirect-jump-[18].c
authorSegher Boessenkool <segher@gcc.gnu.org>
Fri, 26 Jan 2018 21:08:47 +0000 (22:08 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Fri, 26 Jan 2018 21:08:47 +0000 (22:08 +0100)
commitb5d0b3d27ac0f109f014b23563ae38535e3815d4
tree17eb78f168ec228640ffa350b794ac44a8031b4d
parent5bb1c2be88b8f99e050df8ec9052771b122b769f
rs6000: Fix safe-indirect-jump-[18].c

This patch merges the safe-indirect-jump-1.c and -8.c testcases,
since they do the same thing.  On the 64-bit and AIX ABIs the indirect
call is not a sibcall, since there is code generated after the call
(the restore of r2).  On the 32-bit non-AIX ABIs it is a sibcall.

* gcc.target/powerpc/safe-indirect-jump-1.c: Build on all targets.
Make expected output depend on whether we expect sibcalls or not.
* gcc.target/powerpc/safe-indirect-jump-8.c: Delete (merged into
safe-indirect-jump-1.c).

From-SVN: r257108
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/safe-indirect-jump-1.c
gcc/testsuite/gcc.target/powerpc/safe-indirect-jump-8.c [deleted file]