aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/combine.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ef4ce0b..7cdbe44 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-13 Joseph Myers <joseph@codesourcery.com>
+
+ * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on
+ non-integer modes.
+
2008-10-13 Matthias Klose <doko@ubuntu.com>
* gcc/config/pa/linux-atomic.c: Work around missing header file
diff --git a/gcc/combine.c b/gcc/combine.c
index 5821301..55baf371 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))