aboutsummaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-12-23 09:10:18 +0000
committerRichard Guenther <rguenther@suse.de>2011-12-23 09:10:18 +0000
commitfee9385e5e66d54a75f62d8b401374795cefb081 (patch)
treeff3f050835a600396300926ed08f80d6958c7f10 /gcc/simplify-rtx.c
parent301061826caa4e81e537d926012ba684fe43952e (diff)
2011-12-23 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/50396 * simplify-rtx.c (simplify_binary_operation_1): Properly guard code that only works for integers. * gcc.dg/torture/pr50396.c: New testcase. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@182653 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index ab888a96db8..6733b84d572 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -2953,7 +2953,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
}
}
}
- else
+ else if (SCALAR_INT_MODE_P (mode))
{
/* 0/x is 0 (or x&0 if x has side-effects). */
if (trueop0 == CONST0_RTX (mode)