This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Add SSSE3 builtin tests
- From: Roger Sayle <roger at eyesopen dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: janis187 at us dot ibm dot com, <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 17 Dec 2006 09:28:30 -0700 (MST)
- 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?
Roger
--