OSDN Git Service

2004-04-29 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Apr 2004 20:23:36 +0000 (20:23 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Apr 2004 20:23:36 +0000 (20:23 +0000)
        * gcc.dg/rs6000-power2-1.c: Change the options to be more correct.
        * gcc.dg/rs6000-power2-2.c: Change the options to be more correct.
        Change the asm registers to be in form of frN instead of fN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81303 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/rs6000-power2-1.c
gcc/testsuite/gcc.dg/rs6000-power2-2.c

index 718a92e..2214658 100644 (file)
@@ -1,3 +1,9 @@
+2004-04-29  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * gcc.dg/rs6000-power2-1.c: Change the options to be more correct.
+       * gcc.dg/rs6000-power2-2.c: Change the options to be more correct.
+       Change the asm registers to be in form of frN instead of fN.
+
 2004-04-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gcc.dg/torture/builtin-convert-2.c: New test.
index 7f22b98..0e9b5aa 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do assemble { target powerpc-*-* rs6000-*-* }  } */
-/* { dg-options "-O -mpower2 -fno-schedule-insns -w" } */
+/* { dg-options "-O3 -mcpu=power2 -fno-schedule-insns -w -mhard-float" } */
 /* This used to ICE as the peephole was not checking to see
    if the register is a floating point one (I think this cannot
    happen in real life except in this example).  */
index dda4852..74cc0ec 100644 (file)
@@ -1,13 +1,13 @@
 /* { dg-do assemble { target powerpc-*-* rs6000-*-* }  } */
-/* { dg-options "-O -mpower2 -fno-schedule-insns" } */
+/* { dg-options "-O3 -mcpu=power2 -fno-schedule-insns -w -mhard-float" } */
 /* { dg-final { scan-assembler-not "lfd" } } */
 /* { dg-final { scan-assembler-not "sfd" } } */
 /* { dg-final { scan-assembler "lfq" } } */
 /* { dg-final { scan-assembler "sfq" } } */
 
-register double t1 __asm__("f0");
-register double t2 __asm__("f1");
-register double t3 __asm__("f2"), t4 __asm__("f3");
+register double t1 __asm__("fr0");
+register double t2 __asm__("fr1");
+register double t3 __asm__("fr2"), t4 __asm__("fr3");
 void t(double *a, double *b)
 {
         t1 = a[-1];