summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-23 19:16:54 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-23 19:16:54 +0000
commit46c0d79571e0ef5ff226c0a1f8625a7ce7add85a (patch)
tree46a4d15bc1dc428aaabafa9f02ecb30fc94cfd61 /gcc
parent16cf2c2e3114e96a2d1bc126e72e5778d3ee98d1 (diff)
downloadppe42-gcc-46c0d79571e0ef5ff226c0a1f8625a7ce7add85a.tar.gz
ppe42-gcc-46c0d79571e0ef5ff226c0a1f8625a7ce7add85a.zip
PR rtl-opt/21102
* simplify-rtx.c (simplify_binary_operation): Fix mode check before performing some integral scalar simplifications. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98631 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/simplify-rtx.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d5595bf1e4e..fc5453cc88e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2005-04-23 Richard Henderson <rth@redhat.com>
+ PR rtl-opt/21102
+ * simplify-rtx.c (simplify_binary_operation): Fix mode check before
+ performing some integral scalar simplifications.
+
+2005-04-23 Richard Henderson <rth@redhat.com>
+
PR target/21099
* config/i386/i386.c (ix86_split_to_parts): Use proper mode when
simplifying CONST_VECTOR.
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 9e02a7a0458..f5f36aae6da 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -1255,7 +1255,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
have X (if C is 2 in the example above). But don't make
something more expensive than we had before. */
- if (! FLOAT_MODE_P (mode))
+ if (SCALAR_INT_MODE_P (mode))
{
HOST_WIDE_INT coeff0h = 0, coeff1h = 0;
unsigned HOST_WIDE_INT coeff0l = 1, coeff1l = 1;
@@ -1426,7 +1426,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
have X (if C is 2 in the example above). But don't make
something more expensive than we had before. */
- if (! FLOAT_MODE_P (mode))
+ if (SCALAR_INT_MODE_P (mode))
{
HOST_WIDE_INT coeff0h = 0, negcoeff1h = -1;
unsigned HOST_WIDE_INT coeff0l = 1, negcoeff1l = -1;
OpenPOWER on IntegriCloud