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

login
register
mail settings
Submitter Pat Haugen
Date Oct. 1, 2012, 10:03 p.m.
Message ID <506A1331.1080903@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/188351/
State New
Headers show

Comments

Pat Haugen - Oct. 1, 2012, 10:03 p.m.
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.
David Edelsohn - Oct. 1, 2012, 11:18 p.m.
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

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