(print_operand): In `r' case, recognize any kind of zero.
authorRichard Stallman <rms@gnu.org>
Sun, 14 Jun 1992 21:10:53 +0000 (21:10 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 14 Jun 1992 21:10:53 +0000 (21:10 +0000)
From-SVN: r1202

gcc/config/sparc/sparc.c

index 080936a8dc21b18df07bce3591efbd0b6cb19100..78523de99ed1b4e96f6cad7bb6fc57e199d90853 100644 (file)
@@ -2750,7 +2750,8 @@ print_operand (file, x, code)
     case 'r':
       /* In this case we need a register.  Use %g0 if the
         operand is const0_rtx.  */
-      if (x == const0_rtx)
+      if (x == const0_rtx
+         || (GET_MODE (x) != VOIDmode && x == CONST0_RTX (GET_MODE (x))))
        {
          fputs ("%g0", file);
          return;