This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Add more 256bit AVX testcases
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Oct 2010 01:20:38 -0700
- Subject: Re: PATCH: Add more 256bit AVX testcases
- References: <20101014024400.GA13709@intel.com>
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
On Wed, Oct 13, 2010 at 07:44:00PM -0700, H.J. Lu wrote:
> Hi,
>
> I checked in this patch to add more 256bit AVX testcases.
>
> H.J.
> ---
> 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
>
> * gcc.target/i386/recip-vec-sqrtf-avx.c: New.
> * gcc.target/i386/recip-vec-divf-avx.c: Likewise.
> * gcc.target/i386/vectorize4-avx.c: Likewise.
>
Hi,
I checked in this patch to scan 256bit AVX register.
H.J.
---
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/recip-vec-sqrtf-avx.c: Scan 256bit AVX register.
* gcc.target/i386/recip-vec-divf-avx.c: Likewise.
diff --git a/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c b/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c
index 29ed276..62eb903 100644
--- a/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c
+++ b/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c
@@ -13,4 +13,4 @@ void t1(void)
r[i] = a[i] / b[i];
}
-/* { dg-final { scan-assembler "vrcpps" } } */
+/* { dg-final { scan-assembler "vrcpps\[ \\t\]+\[^\n\]*%ymm" } } */
diff --git a/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c b/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c
index 6caa3c0..a9bb6f1 100644
--- a/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c
+++ b/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c
@@ -31,4 +31,4 @@ void t3(void)
r[i] = sqrtf (a[i]);
}
-/* { dg-final { scan-assembler-times "vrsqrtps" 3 } } */
+/* { dg-final { scan-assembler-times "vrsqrtps\[ \\t\]+\[^\n\]*%ymm" 3 } } */