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:
parent
846ed37839
commit
16634471b5
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue