]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
m68k.c (notice_update_cc): Tighten condition for setting CC_REVERSED for FP comparisons.
authorJulian Brown <julian@codesourcery.com>
Mon, 24 Oct 2011 13:47:09 +0000 (13:47 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Mon, 24 Oct 2011 13:47:09 +0000 (13:47 +0000)
gcc/
* config/m68k/m68k.c (notice_update_cc): Tighten condition for
setting CC_REVERSED for FP comparisons.

From-SVN: r180383

gcc/ChangeLog
gcc/config/m68k/m68k.c

index 69450bb37fd0cd698e49c2d4a4274376c549ecbf..6a6782341a40e4725205fc2dd0982a2c4a393a03 100644 (file)
@@ -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
index e447708d239bacc81854e29ac8b4f40e0820717a..51a04ed9c154fe54c8fc7a78752714f0cb26a1c6 100644 (file)
@@ -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;
     }
 }