Eric Botcazou ebotca...@adacore.com 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
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) ==