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: [PATCH] Add vcond_gen_code optab and expand VEC_COND_EXPR



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?

because I did not consider cases like below..


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.

OK


-
Devang


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