Commit 2dfdbf2b by Andreas Krebbel Committed by Andreas Krebbel

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): Don't touch FP compares.

From-SVN: r152979
parent 33ab2bd4
2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 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 * config/s390/s390.c (s390_z10_optimize_cmp): Use
next/prev_active_insn to skip DEBUG_INSNs as well. next/prev_active_insn to skip DEBUG_INSNs as well.
...@@ -9864,6 +9864,9 @@ s390_z10_optimize_cmp (rtx insn) ...@@ -9864,6 +9864,9 @@ s390_z10_optimize_cmp (rtx insn)
if (!REG_P (*op0) || !REG_P (*op1)) if (!REG_P (*op0) || !REG_P (*op1))
return false; return false;
if (GET_MODE_CLASS (GET_MODE (*op0)) != MODE_INT)
return false;
/* Swap the COMPARE arguments and its mask if there is a /* Swap the COMPARE arguments and its mask if there is a
conflicting access in the previous insn. */ conflicting access in the previous insn. */
prev_insn = prev_active_insn (insn); prev_insn = prev_active_insn (insn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment