OSDN Git Service

* optabs.c (emit_cmp_and_jump_insns): Use CONSTANT_P canonicalizing
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Jan 1999 22:03:47 +0000 (22:03 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Jan 1999 22:03:47 +0000 (22:03 +0000)
        RTL for a compare/jump sequence.

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

gcc/ChangeLog
gcc/optabs.c

index 1e22252..81a7398 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jan  3 23:00:42 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * optabs.c (emit_cmp_and_jump_insns): Use CONSTANT_P canonicalizing
+       RTL for a compare/jump sequence.
+       
 Sun Jan  3 22:58:15 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * optabs.c (emit_cmp_insn): Abort if asked to emit non-canonical RTL
index e57a8fc..0d30053 100644 (file)
@@ -2950,7 +2950,7 @@ emit_cmp_and_jump_insns (x, y, comparison, size, mode, unsignedp, align, label)
   rtx op0;
   rtx op1;
          
-  if (GET_CODE (x) == CONST_INT)
+  if (CONSTANT_P (x))
     {
       /* Swap operands and condition to ensure canonical RTL.  */
       op0 = y;