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]

Re: PATCH: Add more 256bit AVX testcases


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


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