This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Native support for vector shift
On Tue, Feb 24, 2009 at 2:01 PM, Michael Meissner
<meissner@linux.vnet.ibm.com> wrote:
> On Tue, Feb 24, 2009 at 01:19:44PM -0800, Bingfeng Mei wrote:
>> Yes, I am aware of both types of vector shift. Our target VLIW
>> actually supports both and I have implemented all related patterns
>> in our porting. But it would be still nice to allow programmer
>> explicitly use vector shift, preferably both types.
>>
>> Bingfeng
>
> It shouldn't be too hard to add the support. ÂI suspect the person who did the
> initial support may have been on a machine without vector shifts.
Nope, because it was originally done by Aldy who did the VMX support
which had vector shifts.
The C/C++ Language extension for the Cell BEA has vector shifts as an
extension, though it is only vector shift vector. I am working on a
patch for 4.5 that will contain the support for that with a
documentation change that better explains these extensions.
Thanks,
Andrew Pinski