Re: Missing SCALAR_INT_MODE_P checks in simplify_subreg

2011-09-14 Thread Richard Sandiford
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

Missing SCALAR_INT_MODE_P checks in simplify_subreg

2011-09-13 Thread Richard Sandiford
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) ==