[rs6000] fold-vec-mult* testcase updates for power9

Message ID 1519234356.11602.369.camel@brimstone.rchland.ibm.com
State New
Headers show
Series
  • [rs6000] fold-vec-mult* testcase updates for power9
Related show

Commit Message

will schmidt Feb. 21, 2018, 5:32 p.m.
Hi,

An update for the fold-vec-mult-int128-p9.c test to include more of
the instructions generated for a vec_mul() with a power9 target.
    
[testsuite]
    
2018-02-21  Will Schmidt  <will_schmidt@vnet.ibm.com>

	* fold-vec-mult-int128-p9.c: Add maddld insn to expected output.

Comments

Segher Boessenkool Feb. 22, 2018, 5:51 p.m. | #1
Hi!

On Wed, Feb 21, 2018 at 11:32:36AM -0600, Will Schmidt wrote:
> An update for the fold-vec-mult-int128-p9.c test to include more of

> the instructions generated for a vec_mul() with a power9 target.

>     

> [testsuite]

>     

> 2018-02-21  Will Schmidt  <will_schmidt@vnet.ibm.com>

> 

> 	* fold-vec-mult-int128-p9.c: Add maddld insn to expected output.


This is fine for trunk.  Thanks!


Segher


> diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-mult-int128-p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-mult-int128-p9.c

> index 6571884..5d3d4aa 100644

> --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-mult-int128-p9.c

> +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-mult-int128-p9.c

> @@ -20,7 +20,7 @@ vector unsigned __int128

>  test2 (vector unsigned __int128 x, vector unsigned __int128 y)

>  {

>    return vec_mul (x, y);

>  }

>  

> -/* { dg-final { scan-assembler-times {\mmulld\M} 4 } } */

> +/* { dg-final { scan-assembler-times {\mmulld\M|\mmaddld\M} 6 } } */

>  /* { dg-final { scan-assembler-times {\mmulhdu\M} 2 } } */

>

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-mult-int128-p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-mult-int128-p9.c
index 6571884..5d3d4aa 100644
--- a/gcc/testsuite/gcc.target/powerpc/fold-vec-mult-int128-p9.c
+++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-mult-int128-p9.c
@@ -20,7 +20,7 @@  vector unsigned __int128
 test2 (vector unsigned __int128 x, vector unsigned __int128 y)
 {
   return vec_mul (x, y);
 }
 
-/* { dg-final { scan-assembler-times {\mmulld\M} 4 } } */
+/* { dg-final { scan-assembler-times {\mmulld\M|\mmaddld\M} 6 } } */
 /* { dg-final { scan-assembler-times {\mmulhdu\M} 2 } } */