This patch fixes a couple failures that occur if the testsuite is run with -mvsx and the VSX scalar sqrt instructions are generated. Ok for trunk?

-Pat


testsuite/ChangeLog:
2012-10-01  Pat Haugen <pthau...@us.ibm.com>

        * gcc.target/powerpc/pr46728-1.c: Accept xssqrtdp.
        * gcc.target/powerpc/pr46728-2.c: Likewise.


Index: gcc/testsuite/gcc.target/powerpc/pr46728-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/pr46728-1.c        (revision 191713)
+++ gcc/testsuite/gcc.target/powerpc/pr46728-1.c        (working copy)
@@ -27,5 +27,5 @@ main (int argc, char *argv[])
 }
 
 
-/* { dg-final { scan-assembler-times "fsqrt" 2 { target powerpc*-*-* } } } */
+/* { dg-final { scan-assembler-times "fsqrt|xssqrtdp" 2 { target powerpc*-*-* 
} } } */
 /* { dg-final { scan-assembler-not "pow" { target powerpc*-*-* } } } */
Index: gcc/testsuite/gcc.target/powerpc/pr46728-2.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/pr46728-2.c        (revision 191713)
+++ gcc/testsuite/gcc.target/powerpc/pr46728-2.c        (working copy)
@@ -27,5 +27,5 @@ main (int argc, char *argv[])
 }
 
 
-/* { dg-final { scan-assembler-times "fsqrt" 4 { target powerpc*-*-* } } } */
+/* { dg-final { scan-assembler-times "fsqrt|xssqrtdp" 4 { target powerpc*-*-* 
} } } */
 /* { dg-final { scan-assembler-not "pow" { target powerpc*-*-* } } } */

Reply via email to