summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-27 03:31:49 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-27 03:31:49 +0000
commitd55451893e475b21bf44de765ecba38736c8c33b (patch)
treeb5d173602e1a933bd93e68b8dd08cf5c3d5c9ec9 /gcc/simplify-rtx.c
parente11e9ae3f6b8a724a71613817a2b075347e2da39 (diff)
downloadgcc-d55451893e475b21bf44de765ecba38736c8c33b.tar.gz
* simplify-rtx.c (simplify_relational_operation_1): Don't simplify
plus/minus across EQ for floating-point. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92631 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 8d7cb3ff247..34b0ab8fe20 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -2807,7 +2807,8 @@ simplify_relational_operation_1 (enum rtx_code code, enum machine_mode mode,
if ((code == EQ || code == NE)
&& (op0code == PLUS || op0code == MINUS)
&& CONSTANT_P (op1)
- && CONSTANT_P (XEXP (op0, 1)))
+ && CONSTANT_P (XEXP (op0, 1))
+ && (INTEGRAL_MODE_P (cmp_mode) || flag_unsafe_math_optimizations))
{
rtx x = XEXP (op0, 0);
rtx c = XEXP (op0, 1);