[PATCH] Add vcond_gen_code optab and expand VEC_COND_EXPR

Devang Patel dpatel@apple.com
Wed Sep 22 01:23:00 GMT 2004


On Sep 21, 2004, at 2:48 PM, Richard Henderson wrote:

> On Thu, Sep 16, 2004 at 09:49:22AM -0700, Devang Patel wrote:
>> +   /* Force operands into register.  */
>> +   rtx_op0 = force_reg (TYPE_MODE (TREE_TYPE (t_op0)), rtx_op0);
>> +   rtx_op1 = force_reg (TYPE_MODE (TREE_TYPE (t_op1)), rtx_op1);
>
> Why?  Certainly it's the case that the zero vector often exists
> as a register in hardware.  You need to be looking at predicates
> for the appropriate optab.

In  vector_compare_rtx() this is used for compare_from_rtx().
There is no optab for vector compares. comparison rtx is generated
and it is handed over to vcond*  insn.

-
Devang



More information about the Gcc-patches mailing list