This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: backporting extract_bit_field patch to 3.1
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "rth at redhat dot com" <rth at redhat dot com>
- Date: Wed, 1 May 2002 16:42:52 +1000
- Subject: Re: backporting extract_bit_field patch to 3.1
- References: <20020501022715.GA14503@redhat.com> <377840000.1020221836@gandalf.codesourcery.com>
i'm not going to push this too much, but...
> Unless you can find a regression on non-Altivec code, that is...
sure...replace vec_xor for whatever the SSE variant is, define
#define vector __attribute__((vector_size(N)))
where N is the number of bytes in say, SSE SIMD registers and
voila... it's a problem with the SIMD stuff, not necessarily
altivec.
aldy
vector signed short b16;
vector signed short poop;
int
main ()
{
vector signed short hannah = poop;
b16 = vec_xor (b16, *(&hannah)); /* replace with xor for sse */
return 0;
}