This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix avx512f-vgetmantpd-2.c testcase with -m32
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>, Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 7 Apr 2017 16:54:42 +0200
- Subject: [PATCH] Fix avx512f-vgetmantpd-2.c testcase with -m32
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jakub at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com CF18B3DBC5
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CF18B3DBC5
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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.
--- 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