From: jsm28 Date: Mon, 13 Oct 2008 21:31:47 +0000 (+0000) Subject: * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65b45ec0b7ba609aea76539d385f0bc132082edb;p=thirdparty%2Fgcc.git * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on non-integer modes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141096 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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))