Message ID | 87boehmmfi.fsf@talisman.default |
---|---|
State | New |
Headers | show |
Index: gcc/simplify-rtx.c =================================================================== --- gcc/simplify-rtx.c 2012-11-27 18:52:29.000000000 +0000 +++ gcc/simplify-rtx.c 2012-11-28 19:54:30.500525576 +0000 @@ -5875,7 +5875,7 @@ simplify_subreg (enum machine_mode outer /* A SUBREG resulting from a zero extension may fold to zero if it extracts higher bits that the ZERO_EXTEND's source bits. */ - if (GET_CODE (op) == ZERO_EXTEND) + if (GET_CODE (op) == ZERO_EXTEND && SCALAR_INT_MODE_P (innermode)) { unsigned int bitpos = subreg_lsb_1 (outermode, innermode, byte); if (bitpos >= GET_MODE_PRECISION (GET_MODE (XEXP (op, 0)))