From 9a1d8b2d29932773873877bb215c721728931aa1 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 26 Mar 2002 17:43:36 -0800 Subject: [PATCH] 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: r51422 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/gcc.dg/20020312-2.c | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 742f50e96bb..b4361c91129 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2002-03-26 Richard Henderson + * 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. diff --git a/gcc/testsuite/gcc.dg/20020312-2.c b/gcc/testsuite/gcc.dg/20020312-2.c index a73efa02dda..60d7a7521cd 100644 --- a/gcc/testsuite/gcc.dg/20020312-2.c +++ b/gcc/testsuite/gcc.dg/20020312-2.c @@ -135,9 +135,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; } -- 2.30.2