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] Fix check_effective_target_xop


On Thu, Nov 05, 2009 at 02:36:00PM +0100, Jakub Jelinek wrote:
> On Thu, Oct 29, 2009 at 01:14:21PM -0500, rajagopal, dwarak wrote:
> > As you suggested, I'll submit a separate patch to fix those issues.
> 
> I've noticed that this check fails differently than I'd expect:
> xop1265.c: In function '_mm_maccs_epi16':
> xop1265.c:8:13: error: can't convert between vector values of different size
> compiler exited with status 1
> 
> instead of:
> 
> /tmp/cc0fdl6g.s: Assembler messages:
> /tmp/cc0fdl6g.s:9: Error: no such instruction: `vpmacssww %xmm2,%xmm0,%xmm1,%xmm0'
> compiler exited with status 1
> 
> (btw, when will be the XOP/LWP binutils support submitted?).
> 
> The problem is that the test uses a non-existing builtin name.
> 
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?

Richi suggests it is better to actually post the patch ;)

2009-11-05  Jakub Jelinek  <jakub@redhat.com>

	* gcc.target/i386/i386.exp (check_effective_target_xop): Fix typo
	in builtin's name.

--- gcc/testsuite/gcc.target/i386/i386.exp.jj	2009-11-04 18:31:22.000000000 +0100
+++ gcc/testsuite/gcc.target/i386/i386.exp	2009-11-05 11:02:03.000000000 +0100
@@ -153,9 +153,9 @@ proc check_effective_target_xop { } {
 	typedef short __v8hi __attribute__ ((__vector_size__ (16)));
 	__m128i _mm_maccs_epi16(__m128i __A, __m128i __B, __m128i __C)
 	{
-	    return (__m128i) __builtin_ia32_pmacssww ((__v8hi)__A,
-						      (__v8hi)__B,
-						      (__v8hi)__C);
+	    return (__m128i) __builtin_ia32_vpmacssww ((__v8hi)__A,
+						       (__v8hi)__B,
+						       (__v8hi)__C);
 	}
     } "-O2 -mxop" ]
 }


	Jakub


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