This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH [x86_64] PR20020 - 128 bit structs not targeted to TImode
- From: Gary Funck <gary at intrepid dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Gcc Patches <gcc-patches at gcc dot gnu dot org>, jh at suse dot cz, hjl dot tools at gmail dot com
- Date: Tue, 14 Aug 2012 04:51:37 -0700
- Subject: Re: PATCH [x86_64] PR20020 - 128 bit structs not targeted to TImode
- References: <20120814042032.GB23649@intrepid.com> <20120814063059.GU1999@tucnak.redhat.com>
On 08/14/12 08:30:59, Jakub Jelinek wrote:
> On Mon, Aug 13, 2012 at 09:20:32PM -0700, Gary Funck wrote:
> > --- gcc/testsuite/gcc.dg/pr20020-1.c (revision 0)
> > +++ gcc/testsuite/gcc.dg/pr20020-1.c (revision 0)
> > @@ -0,0 +1,25 @@
> > +/* Target is restricted to x86_64 type architectures,
> > + to check that 128-bit struct's are represented
> > + as TImode values. */
> > +/* { dg-require-effective-target int128 } */
> > +/* { dg-do compile { target { x86_64-*-* } } } */
>
> Given this all the testcases should go into gcc/testsuite/gcc.target/i386/
OK.
Note: It might be possible to leave only dg-require-effective-target int128
and use this as a regression test for other targets, such as
PPC64, S390, and IA64. However, I was uncertain if the RTL would
be similar enough, and know that in at least one case the
RTL scan would have to be adjusted. Also, I don't have access
to a S390. If there is interest in generalizing the test,
let me know. Otherwise, I'll move the tests to gcc.target/i386.
- Gary