diff mbox

[rs6000,testsuite] Fix a couple tests for VSX scalar instructions

Message ID 506A1331.1080903@linux.vnet.ibm.com
State New
Headers show

Commit Message

Pat Haugen Oct. 1, 2012, 10:03 p.m. UTC
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 <pthaugen@us.ibm.com>

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

Comments

David Edelsohn Oct. 1, 2012, 11:18 p.m. UTC | #1
On Mon, Oct 1, 2012 at 6:03 PM, Pat Haugen <pthaugen@linux.vnet.ibm.com> wrote:
> 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 <pthaugen@us.ibm.com>
>
>         * gcc.target/powerpc/pr46728-1.c: Accept xssqrtdp.
>         * gcc.target/powerpc/pr46728-2.c: Likewise.

LGTM.

Thanks, David
diff mbox

Patch

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*-*-* } } } */