diff mbox

Fix avx512f-vgetmantpd-2.c testcase with -m32

Message ID 20170407145442.GC1914@tucnak
State New
Headers show

Commit Message

Jakub Jelinek April 7, 2017, 2:54 p.m. UTC
Hi!

I've noticed the avx512f-vgetmantpd-2.c testcase eats lots of
CPU time on KNL with -m32 and FAILs.  The problem is
excess precision, I've added -mfpmath=sse to it to fix that.

Tested with                                                                                                                                        
make -j272 -k check-gcc RUNTESTFLAGS='--target_board=unix\{-m32,-m64\} i386.exp'                                                                   
on KNL, ok for trunk?

2017-04-07  Jakub Jelinek  <jakub@redhat.com>

	* gcc.target/i386/avx512f-vgetmantps-2.c: Add -mfpmath=sse to
	dg-options.
	* gcc.target/i386/avx512f-vgetmantpd-2.c: Likewise.


	Jakub

Comments

Uros Bizjak April 7, 2017, 3:05 p.m. UTC | #1
On Fri, Apr 7, 2017 at 4:54 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> I've noticed the avx512f-vgetmantpd-2.c testcase eats lots of
> CPU time on KNL with -m32 and FAILs.  The problem is
> excess precision, I've added -mfpmath=sse to it to fix that.
>
> Tested with
> make -j272 -k check-gcc RUNTESTFLAGS='--target_board=unix\{-m32,-m64\} i386.exp'
> on KNL, ok for trunk?
>
> 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
>
>         * gcc.target/i386/avx512f-vgetmantps-2.c: Add -mfpmath=sse to
>         dg-options.
>         * gcc.target/i386/avx512f-vgetmantpd-2.c: Likewise.

OK.

Thanks,
Uros.

> --- gcc/testsuite/gcc.target/i386/avx512f-vgetmantps-2.c.jj     2017-04-07 05:52:04.000000000 -0400
> +++ gcc/testsuite/gcc.target/i386/avx512f-vgetmantps-2.c        2017-04-07 09:22:13.051209011 -0400
> @@ -1,5 +1,5 @@
>  /* { dg-do run } */
> -/* { dg-options "-O2 -mavx512f -std=c99" } */
> +/* { dg-options "-O2 -mavx512f -std=c99 -mfpmath=sse" } */
>  /* { dg-require-effective-target avx512f } */
>  /* { dg-require-effective-target c99_runtime } */
>
> --- gcc/testsuite/gcc.target/i386/avx512f-vgetmantpd-2.c.jj     2017-04-07 05:51:49.000000000 -0400
> +++ gcc/testsuite/gcc.target/i386/avx512f-vgetmantpd-2.c        2017-04-07 09:21:46.648317195 -0400
> @@ -1,5 +1,5 @@
>  /* { dg-do run } */
> -/* { dg-options "-O2 -mavx512f -std=c99" } */
> +/* { dg-options "-O2 -mavx512f -std=c99 -mfpmath=sse" } */
>  /* { dg-require-effective-target avx512f } */
>  /* { dg-require-effective-target c99_runtime } */
>
>
>         Jakub
diff mbox

Patch

--- gcc/testsuite/gcc.target/i386/avx512f-vgetmantps-2.c.jj	2017-04-07 05:52:04.000000000 -0400
+++ gcc/testsuite/gcc.target/i386/avx512f-vgetmantps-2.c	2017-04-07 09:22:13.051209011 -0400
@@ -1,5 +1,5 @@ 
 /* { dg-do run } */
-/* { dg-options "-O2 -mavx512f -std=c99" } */
+/* { dg-options "-O2 -mavx512f -std=c99 -mfpmath=sse" } */
 /* { dg-require-effective-target avx512f } */
 /* { dg-require-effective-target c99_runtime } */
 
--- gcc/testsuite/gcc.target/i386/avx512f-vgetmantpd-2.c.jj	2017-04-07 05:51:49.000000000 -0400
+++ gcc/testsuite/gcc.target/i386/avx512f-vgetmantpd-2.c	2017-04-07 09:21:46.648317195 -0400
@@ -1,5 +1,5 @@ 
 /* { dg-do run } */
-/* { dg-options "-O2 -mavx512f -std=c99" } */
+/* { dg-options "-O2 -mavx512f -std=c99 -mfpmath=sse" } */
 /* { dg-require-effective-target avx512f } */
 /* { dg-require-effective-target c99_runtime } */