s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Mon, 19 Oct 2009 15:43:27 +0000 (15:43 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 19 Oct 2009 15:43:27 +0000 (15:43 +0000)
2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.

From-SVN: r152979

gcc/ChangeLog
gcc/config/s390/s390.c

index 87ccb79..c4048a5 100644 (file)
@@ -1,5 +1,9 @@
 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
+       * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
+
+2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+
        * config/s390/s390.c (s390_z10_optimize_cmp): Use
        next/prev_active_insn to skip DEBUG_INSNs as well.
 
index c13170d..a433481 100644 (file)
@@ -9864,6 +9864,9 @@ s390_z10_optimize_cmp (rtx insn)
   if (!REG_P (*op0) || !REG_P (*op1))
     return false;
 
+  if (GET_MODE_CLASS (GET_MODE (*op0)) != MODE_INT)
+    return false;
+
   /* Swap the COMPARE arguments and its mask if there is a
      conflicting access in the previous insn.  */
   prev_insn = prev_active_insn (insn);