summaryrefslogtreecommitdiff
path: root/gcc/config/m68k
diff options
context:
space:
mode:
authorjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-24 13:47:09 +0000
committerjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-24 13:47:09 +0000
commitc1aa88178a22655e6bfa1fbb9e7ff7a9dfae9a19 (patch)
treeb25198aca919d6a0f406252f71dd344d6e868961 /gcc/config/m68k
parenta927c5fa8a3ed8135a800ecb5efc4bd94043c5e5 (diff)
downloadgcc-c1aa88178a22655e6bfa1fbb9e7ff7a9dfae9a19.tar.gz
gcc/
* config/m68k/m68k.c (notice_update_cc): Tighten condition for setting CC_REVERSED for FP comparisons. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180383 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r--gcc/config/m68k/m68k.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index e447708d239..51a04ed9c15 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;
}
}