OSDN Git Service

* expr.c (compare_from_rtx): Generate comparison between op0 and op1
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 May 2002 22:08:12 +0000 (22:08 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 May 2002 22:08:12 +0000 (22:08 +0000)
        rather than cc0 and 0 in a case when HAVE_cc0 is not defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54122 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index 098f7f2..a7ef69c 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-31  Igor Shevlyakov <igor@microunity.com>
+
+       * expr.c (compare_from_rtx): Generate comparison between op0 and op1 
+       rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
+
 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
 
        * gcc.c (cpp_unique_options): Remove "-d" options.
index b373ad2..1a57b9a 100644 (file)
@@ -10091,7 +10091,11 @@ compare_from_rtx (op0, op1, code, unsignedp, mode, size)
 
   emit_cmp_insn (op0, op1, code, size, mode, unsignedp);
 
+#if HAVE_cc0
   return gen_rtx_fmt_ee (code, VOIDmode, cc0_rtx, const0_rtx);
+#else
+  return gen_rtx_fmt_ee (code, VOIDmode, op0, op1);
+#endif
 }
 
 /* Like do_compare_and_jump but expects the values to compare as two rtx's.