20020312-2.c: Don't test epilogue vs global register on sparc.

* gcc.dg/20020312-2.c: Don't test epilogue vs global register
        on sparc.

From-SVN: r51421
This commit is contained in:
Richard Henderson 2002-03-26 17:42:58 -08:00 committed by Richard Henderson
parent 846ed37839
commit 16634471b5
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2002-03-26 Richard Henderson <rth@redhat.com>
* gcc.dg/20020312-2.c: Don't test epilogue vs global register
on sparc.
* gcc.dg/20001101-1.c: Add -mcpu=ultrasparc. Only run on
sparcv9 systems.
* gcc.dg/20001102-1.c: Likewise.

View File

@ -133,9 +133,17 @@ main()
{
void *old_reg = reg;
reg = (void *) 1;
f ();
/* Additionally test that the prologue/epilogue properly does *not*
save and restore global registers. Not possible when the PIC
register is in a register window, of course. */
#ifndef __sparc__
if (reg)
abort ();
#endif
reg = old_reg;
return 0;
}