[RFC] optabs and tree-codes for vector operations

Devang Patel dpatel@apple.com
Wed Aug 18 22:00:00 GMT 2004


On Aug 18, 2004, at 1:39 PM, Richard Henderson wrote:

> On Wed, Aug 18, 2004 at 01:35:44PM -0700, Devang Patel wrote:
>>> Hmm?  Why do you need target hooks for this?
>>
>> To allow targets to interpret vector compare results appropriately?
>
> Didn't I just cover this?

Yes you did.

>   You're never going to *look* at the
> results of a vector compare.

Expanding VEC_COND_EXPR tree nodes means
	- generate vector compare instruction	
	- generate vector select instruction that selects elements for first 
vector operand or second vector operand and put them in resulting 
vector.

Now, we need to generate RTLs so that they match appropriate 
instructions in target's md file. In first pattern, what do I use to 
hold result that I can use as one of the argument in second pattern?. 
Do I use RTX to hold vector or integer or ?(Probably I am not using 
right terminology here but I guess you understand my confusion.) To 
you, answer to this is obvious, but for me it is difficult.

Thanks,
-
Devang



More information about the Gcc mailing list