This is the mail archive of the 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 comparison

On 08/15/2010 11:56 AM, Steven Bosscher wrote:
> On Sun, Aug 15, 2010 at 8:38 PM, Artem Shinkarov
> <> wrote:
>>> Please consider using tree codes all the way through the gimple IR if
>>> the target supports expansion and doing the expansion only at expand
>>> time.  Building a call expression is expensive and really you could
>>> use opcodes and not worry about a target hook.  I think opcodes it is
>>> a much easier way allowing for targets to add support rather than
>>> adding more and more target hooks.
>> The hook approach was approved by Richard,
> Hmm, it's unfortunate that this wasn't brought up earlier on the gcc
> list. I agree with pinski that using new codes here seems like the
> better approach.

I don't think we need new codes.

The difference between Cell and OpenCL is obviously a problem at the
language level (to be sorted by command-line flags no doubt), but at
the GIMPLE level it's easy to have both

  bool t = <eq <type boolean> v1 v2>;
  vect v = <eq <type vect> v1 v2>;

be valid.


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