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, vectorizer]: Fix PR tree-optimization/33846, ICE in trunc_int_for_mode, at explow.c:55


> The fix is simply to pass inner mode of the vector mode to the
> trunc_int_for_mode when shift-by-constant-scalar-value RTX is
> processed. I have checked that the loop is still vecotrized (and
> expected result is produced).

The subject of the message should not be "vectorizer" then.

> Patch was bootstrapped and regression tested on i686-pc-linux-gnu.
>
> OK for mainline

No, I think that

GET_CODE (XEXP (varop, 1)) == CONST_INT

should have avoided the problem.  Where does the CONST_INT come from?

> 2007-10-22  Uros Bizjak  <ubizjak@gmail.com>
>
> 	PR tree-optimization/33846
> 	* combine.c (simplify_shift_const_1): Use inner mode for vector
> 	shift_mode in the call to trunc_int_for_mode when varop == XOR.

It's PR rtl-optimization/33846 if you touch the combiner.

-- 
Eric Botcazou


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