From: Joseph Myers Date: Mon, 13 Oct 2008 21:31:47 +0000 (+0100) Subject: combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on non-integer modes. X-Git-Tag: releases/gcc-4.4.0~2067 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f27017d133f82f9646f0ae3810415644aadb6d30;p=thirdparty%2Fgcc.git combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on non-integer modes. * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on non-integer modes. From-SVN: r141096 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef4ce0b27b61..7cdbe4489b81 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-10-13 Joseph Myers + + * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on + non-integer modes. + 2008-10-13 Matthias Klose * gcc/config/pa/linux-atomic.c: Work around missing header file diff --git a/gcc/combine.c b/gcc/combine.c index 5821301d72cd..55baf37149ad 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -5843,6 +5843,7 @@ simplify_set (rtx x) zero_extend to avoid the reload that would otherwise be required. */ if (GET_CODE (src) == SUBREG && subreg_lowpart_p (src) + && INTEGRAL_MODE_P (GET_MODE (SUBREG_REG (src))) && LOAD_EXTEND_OP (GET_MODE (SUBREG_REG (src))) != UNKNOWN && SUBREG_BYTE (src) == 0 && (GET_MODE_SIZE (GET_MODE (src))