ppc-sdata-1.c: Update to consider the possibility of the compiler referring to register 0 when...

* gcc.dg/ppc-sdata-1.c: Update to consider the possibility of the
	compiler referring to register 0 when accessing sdata.  The linker
	now patches things up.

From-SVN: r89195
This commit is contained in:
Ben Elliston 2004-10-18 03:23:20 +00:00 committed by Ben Elliston
parent 0ca541aab9
commit 0dc48e8995
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2004-10-18 Ben Elliston <bje@au.ibm.com>
* gcc.dg/ppc-sdata-1.c: Update to consider the possibility of the
compiler referring to register 0 when accessing sdata. The linker
now patches things up.
2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
PR c/17529

View File

@ -2,8 +2,8 @@
/* { dg-options "-O2 -fno-common -G 8 -meabi -msdata=eabi" } */
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata2," } } */
/* { dg-final { scan-assembler "sdat@sdarel\\(13\\)" } } */
/* { dg-final { scan-assembler "sdat2@sda21\\(2\\)" } } */
/* { dg-final { scan-assembler "sdat@sda21\\((13|0)\\)" } } */
/* { dg-final { scan-assembler "sdat2@sda21\\((2|0)\\)" } } */
int sdat = 2;