This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Update tests for AVX
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 2 Sep 2008 20:32:54 -0700
- Subject: PATCH: Update tests for AVX
gcc.c-torture/compile/vector-4.c used to fail for -mavx. This patch
adds -mavx for x86. gcc.target/i386/avx-3.c needs DFP support. This
patch adds it. OK for trunk?
BTW, gcc.c-torture/compile/vector-4.c comes from gcc.dg/simd-3.c.
But it doesn't fail on x86 since -mavx isn't used.
Thanks.
H.J.
----
2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
* gcc.c-torture/compile/vector-4.c: Add -mavx for x86.
* gcc.target/i386/avx-3.c: Require DFP support.
--- gcc/testsuite/gcc.c-torture/compile/vector-4.c.avx 2008-09-02 19:48:02.000000000 -0700
+++ gcc/testsuite/gcc.c-torture/compile/vector-4.c 2008-09-02 19:58:38.000000000 -0700
@@ -1,3 +1,5 @@
+/* { dg-options "-mavx" { target { i?86-*-* x86_64-*-* } } } */
+
/* Make sure that vector of size 8 of signed char works. This used to crash with AVX on x86
as we would produce try to extract the chars inside the vector mode using the vector mode of V8SI
which was wrong. */
--- gcc/testsuite/gcc.target/i386/avx-3.c.avx 2008-08-28 21:29:21.000000000 -0700
+++ gcc/testsuite/gcc.target/i386/avx-3.c 2008-09-02 19:56:28.000000000 -0700
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target dfp } */
/* { dg-options "-O2 -mavx -std=gnu99" } */
_Decimal128