This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: vector operations and scalar operands
- From: Jan Hubicka <jh at suse dot cz>
- To: Richard Henderson <rth at redhat dot com>, Jan Hubicka <jh at suse dot cz>,gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 10 Feb 2003 11:31:38 +0100
- Subject: Re: vector operations and scalar operands
- References: <20030209144619.GE15811@kam.mff.cuni.cz> <20030209190041.GD11644@redhat.com> <20030209235732.GV25194@kam.mff.cuni.cz> <20030209163152.D11482@redhat.com>
> On Mon, Feb 10, 2003 at 12:57:32AM +0100, Jan Hubicka wrote:
> > There is problem with folding relationas - simplify_relational_operation
> > does not take mode of the output as operand and always returns
> > const0_rtx/const1_rtx.
> > Would be something wrong with adding the mode?
>
> Yes. We've nothing that defines what the result of
> a vector comparison is.
Hmm, perhaps I can do this in two step - first add the mode operand and
teach simplify_binary_operation to return the proper values for FP
comparisons that are defined now and then add some bits for the vectors
themselves.
Honza
>
> > * simplify-rtx.c (simplify_binary_operation): Simplify vector shifts.
>
> Ok.
>
>
> r~