Eric Botcazou writes:
>> Tested on arm-linux-gnueabi and x86_64-linux-gnu. Although I suppose
>> I could self-approve this, I'd appreciate it if someone would double-check.
>>
>> Richard
>>
>>
>> gcc/
>> * simplify-rtx.c (simplify_subreg): Check that the inner mode is
>> a scalar intege
> Tested on arm-linux-gnueabi and x86_64-linux-gnu. Although I suppose
> I could self-approve this, I'd appreciate it if someone would double-check.
>
> Richard
>
>
> gcc/
> * simplify-rtx.c (simplify_subreg): Check that the inner mode is
> a scalar integer before applying integer-only
While working on an ARM backend patch, I tripped over a case in which
a subreg of a vector zero-extension was wrongly being optimised to zero.
This comes from the following code in simplify_subreg:
/* Optimize SUBREG truncations of zero and sign extended values. */
if ((GET_CODE (op) == ZERO_