aboutsummaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-04-23 12:16:54 -0700
committerRichard Henderson <rth@gcc.gnu.org>2005-04-23 12:16:54 -0700
commit6800ea5c5768b8363a4de8fcbd29479f9813c1e2 (patch)
tree46a4d15bc1dc428aaabafa9f02ecb30fc94cfd61 /gcc/simplify-rtx.c
parentbd08db74e39248a4fe434ee03c5256ab5b63ee47 (diff)
downloadgcc-6800ea5c5768b8363a4de8fcbd29479f9813c1e2.zip
gcc-6800ea5c5768b8363a4de8fcbd29479f9813c1e2.tar.gz
gcc-6800ea5c5768b8363a4de8fcbd29479f9813c1e2.tar.bz2
re PR rtl-optimization/21102 (ICE: in immed_double_const, on SSE2 intrinsics)
PR rtl-opt/21102 * simplify-rtx.c (simplify_binary_operation): Fix mode check before performing some integral scalar simplifications. From-SVN: r98631
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 9e02a7a..f5f36aa 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;