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: Vector shuffling


On Fri, Sep 2, 2011 at 8:52 PM, Joseph S. Myers <joseph@codesourcery.com> wrote:
> On Fri, 2 Sep 2011, Artem Shinkarov wrote:
>
>> Joseph, I don't understand this comment. I have 2 or 3 arguments in
>> the VEC_SHUFFLE_EXPR and any of them can be C_MAYBE_CONST_EXPR,
>
> Yes.
>
>> so I
>> need to wrap mask (the last argument) to avoid the following failure:
>
> No. ?You need to fold it (c_fully_fold) to eliminate any
> C_MAYBE_CONST_EXPR it contains, but you shouldn't need to wrap the result
> of folding in a SAVE_EXPR.

Ok, Now I get it, thanks.

In the attachment there is a new version of the patch that removes save-exprs.


Artem.

Attachment: vec-shuffle.v15.diff
Description: Text document


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