aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJ"orn Rennecke <joern.rennecke@superh.com>2002-09-04 17:49:58 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2002-09-04 18:49:58 +0100
commitb10f218708c0cc0f878ff4a474e46196bc30e3b5 (patch)
tree36cdd2e8e12bfa35a6eade745d3c02aaabfd75a6 /gcc
parent478c9e72c61443a0fc32841d05c2251246de88c8 (diff)
downloadgcc-b10f218708c0cc0f878ff4a474e46196bc30e3b5.zip
gcc-b10f218708c0cc0f878ff4a474e46196bc30e3b5.tar.gz
gcc-b10f218708c0cc0f878ff4a474e46196bc30e3b5.tar.bz2
combine.c (make_compound_operation): Don't generate zero / sign extensions in floating point modes.
* combine.c (make_compound_operation): Don't generate zero / sign extensions in floating point modes. From-SVN: r56804
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/combine.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7f11bb8..682001b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 4 18:48:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
+
+ * combine.c (make_compound_operation): Don't generate zero / sign
+ extensions in floating point modes.
+
2002-09-04 Janis Johnson <janis187@us.ibm.com>
* doc/c-tree.texi: Fix overfull hboxes.
diff --git a/gcc/combine.c b/gcc/combine.c
index 4a2ae3c..10ee904 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -6629,7 +6629,11 @@ make_compound_operation (x, in_code)
if (GET_MODE_SIZE (mode) > GET_MODE_SIZE (GET_MODE (tem))
|| (GET_MODE_SIZE (mode) >
GET_MODE_SIZE (GET_MODE (XEXP (tem, 0)))))
- tem = gen_rtx_fmt_e (GET_CODE (tem), mode, XEXP (tem, 0));
+ {
+ if (! INTEGRAL_MODE_P (mode))
+ break;
+ tem = gen_rtx_fmt_e (GET_CODE (tem), mode, XEXP (tem, 0));
+ }
else
tem = gen_lowpart_for_combine (mode, XEXP (tem, 0));
return tem;