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 SSSE3 builtin tests


> -----Original Message-----
> From: gcc-patches-owner@gcc.gnu.org
[mailto:gcc-patches-owner@gcc.gnu.org]
> On Behalf Of Roger Sayle
> Sent: Sunday, December 17, 2006 11:29 AM
> To: H. J. Lu
> Cc: janis187@us.ibm.com; gcc-patches@gcc.gnu.org
> Subject: Re: PATCH: Add SSSE3 builtin tests
> 
> 
> Hi H.J.,
> 
> On Tue, 5 Dec 2006, H. J. Lu wrote:
> > 	* gcc.target/i386/ssse3-pabsb.c: New file.
> > 	* gcc.target/i386/ssse3-pabsd.c: Likewise.
> > 	* gcc.target/i386/ssse3-pabsw.c: Likewise.
> > 	* gcc.target/i386/ssse3-palignr.c: Likewise.
> > 	* gcc.target/i386/ssse3-phaddd.c: Likewise.
> > 	* gcc.target/i386/ssse3-phaddsw.c: Likewise.
> > 	* gcc.target/i386/ssse3-phaddw.c: Likewise.
> > 	* gcc.target/i386/ssse3-phsubd.c: Likewise.
> > 	* gcc.target/i386/ssse3-phsubsw.c: Likewise.
> > 	* gcc.target/i386/ssse3-phsubw.c: Likewise.
> > 	* gcc.target/i386/ssse3-pmaddubsw.c: Likewise.
> > 	* gcc.target/i386/ssse3-pmulhrsw.c: Likewise.
> > 	* gcc.target/i386/ssse3-pshufb.c: Likewise.
> > 	* gcc.target/i386/ssse3-psignb.c: Likewise.
> > 	* gcc.target/i386/ssse3-psignd.c: Likewise.
> > 	* gcc.target/i386/ssse3-psignw.c: Likewise.
> > 	* gcc.target/i386/ssse3-vals.h: Likewise.
> 
> Many (all?) of these tests are failing for me on i686-pc-linux-gnu on
> RedHat 4.3, due to the new SSSE3 instructions not being recognized by
> the native assembler, based upon binutils 2.15.92.0.2.
> 
> /tmp/ccBMbto1.s: Assembler messages:
> /tmp/ccBMbto1.s:66: Error: no such instruction: `pabsd (%eax),%mm0'
> /tmp/ccBMbto1.s:148: Error: no such instruction: `pabsd
vals(%ebx),%xmm0'
> FAIL: gcc.target/i386/ssse3-pabsd.c (test for excess errors)
> 
> We either need to make these compile only tests when assembler support
> isn't available, or do something similar to what we do with
> HAVE_AS_IX86_FFREEP, where the compiler emits .word directives
> for assemblers that don't support the new mnemonics (such as the
> Solaris native assembler and older versions on binutils).
> 
> I've run into unrelated problems with binutils 2.17, so recommending
> that we force folks to upgrade to a recent binutils purely to run
> these tests might be controversial.
> 
> Is anyone else seeing similar problems?

We likely will have a similar problem when we merge in the AMDFAM10
instruction support.

--
Michael Meissner
AMD, MS 83-29
90 Central Street
Boxborough, MA 01719




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