Patchwork PATCH: Add more 256bit AVX testcases

login
register
mail settings
Submitter H.J. Lu
Date Oct. 14, 2010, 8:20 a.m.
Message ID <20101014082038.GA9551@intel.com>
Download mbox | patch
Permalink /patch/67789/
State New
Headers show

Comments

H.J. Lu - Oct. 14, 2010, 8:20 a.m.
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.

Patch

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 } } */