This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]