aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2011-10-24 13:47:09 +0000
committerJulian Brown <jules@gcc.gnu.org>2011-10-24 13:47:09 +0000
commit695074beca1441d103d7da374ae4eb6b8f3b4be5 (patch)
treeb25198aca919d6a0f406252f71dd344d6e868961
parent0a500dd3acd012e36ffdd1518640d1c701fa890c (diff)
downloadgcc-695074beca1441d103d7da374ae4eb6b8f3b4be5.zip
gcc-695074beca1441d103d7da374ae4eb6b8f3b4be5.tar.gz
gcc-695074beca1441d103d7da374ae4eb6b8f3b4be5.tar.bz2
m68k.c (notice_update_cc): Tighten condition for setting CC_REVERSED for FP comparisons.
gcc/ * config/m68k/m68k.c (notice_update_cc): Tighten condition for setting CC_REVERSED for FP comparisons. From-SVN: r180383
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m68k/m68k.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 69450bb..6a67823 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-24 Julian Brown <julian@codesourcery.com>
+
+ * config/m68k/m68k.c (notice_update_cc): Tighten condition for
+ setting CC_REVERSED for FP comparisons.
+
2011-10-24 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50838
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index e447708..51a04ed 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -4206,7 +4206,8 @@ notice_update_cc (rtx exp, rtx insn)
&& GET_MODE_CLASS (GET_MODE (XEXP (cc_status.value2, 0))) == MODE_FLOAT)
{
cc_status.flags = CC_IN_68881;
- if (!FP_REG_P (XEXP (cc_status.value2, 0)))
+ if (!FP_REG_P (XEXP (cc_status.value2, 0))
+ && FP_REG_P (XEXP (cc_status.value2, 1)))
cc_status.flags |= CC_REVERSED;
}
}