From: Andrew Pinski Date: Wed, 1 Sep 2004 05:26:15 +0000 (+0000) Subject: rs6000-power2-1.c (t1, t2, t3, t4): Add volatile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c11ddb68248978c0cbefcb037cf3c72cbc326f6b;p=gcc.git rs6000-power2-1.c (t1, t2, t3, t4): Add volatile. 2004-08-31 Andrew Pinski * gcc.dg/rs6000-power2-1.c (t1, t2, t3, t4): Add volatile. * gcc.dg/rs6000-power2-2.c: Fix the scan-assembly for the store. (t1, t2, t3, t4): Add volatile. From-SVN: r86871 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 203f6a6fffd..e74cfac1df7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-08-31 Andrew Pinski + + * gcc.dg/rs6000-power2-1.c (t1, t2, t3, t4): Add volatile. + * gcc.dg/rs6000-power2-2.c: Fix the scan-assembly for the store. + (t1, t2, t3, t4): Add volatile. + 2004-08-31 Mark Mitchell * g++.dg/ext/visibility/arm1.C: New test. diff --git a/gcc/testsuite/gcc.dg/rs6000-power2-1.c b/gcc/testsuite/gcc.dg/rs6000-power2-1.c index 7d344a93a2c..193647ef781 100644 --- a/gcc/testsuite/gcc.dg/rs6000-power2-1.c +++ b/gcc/testsuite/gcc.dg/rs6000-power2-1.c @@ -4,9 +4,9 @@ if the register is a floating point one (I think this cannot happen in real life except in this example). */ -register double t1 __asm__("r14"); -register double t2 __asm__("r15"); -register double t3 __asm__("r16"), t4 __asm__("r17"); +register volatile double t1 __asm__("r14"); +register volatile double t2 __asm__("r15"); +register volatile double t3 __asm__("r16"), t4 __asm__("r17"); void t(double *a, double *b) { t1 = a[-1]; diff --git a/gcc/testsuite/gcc.dg/rs6000-power2-2.c b/gcc/testsuite/gcc.dg/rs6000-power2-2.c index 2fefbcbfb81..c5c7c7b8fe3 100644 --- a/gcc/testsuite/gcc.dg/rs6000-power2-2.c +++ b/gcc/testsuite/gcc.dg/rs6000-power2-2.c @@ -3,11 +3,11 @@ /* { dg-final { scan-assembler-not "lfd" } } */ /* { dg-final { scan-assembler-not "sfd" } } */ /* { dg-final { scan-assembler "lfq" } } */ -/* { dg-final { scan-assembler "sfq" } } */ +/* { dg-final { scan-assembler "stfq" } } */ -register double t1 __asm__("fr0"); -register double t2 __asm__("fr1"); -register double t3 __asm__("fr2"), t4 __asm__("fr3"); +register volatile double t1 __asm__("fr0"); +register volatile double t2 __asm__("fr1"); +register volatile double t3 __asm__("fr2"), t4 __asm__("fr3"); void t(double *a, double *b) { t1 = a[-1];