Commit 8b160d50 by Edmar Wienskoski Committed by David Edelsohn

* gcc.target/powerpc/outofline_rnreg.c: New testcase.

From-SVN: r174995
parent 317a0646
2011-06-13 Edmar Wienskoski <edmar@freescale.com>
* gcc.target/powerpc/outofline_rnreg.c: New testcase.
2011-06-13 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/h8300-bit-insn-ice2.c: Remove duplicated lines.
......
/* Test that registers used by out of line restore functions does not get renamed.
AIX, and 64 bit targets uses r1, which rnreg stays away from.
Linux 32 bits targets uses r11, which is susceptible to be renamed */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-Os -frename-registers -fdump-rtl-rnreg" } */
/* "* renamed" or "* no available better choice" results are not acceptable */
/* { dg-final { scan-rtl-dump-not "Register 11 in insn *" "rnreg" { target powerpc*-*-linux* } } } */
/* { dg-final { cleanup-rtl-dump "rnreg" } } */
int
calc (int j)
{
if (j<=1) return 1;
return calc(j-1)*(j+1);
}
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