From: Richard Stallman Date: Sun, 14 Jun 1992 21:10:53 +0000 (+0000) Subject: (print_operand): In `r' case, recognize any kind of zero. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76052e7462b4a4a51e1770ee9c556afcd3abaabf;p=gcc.git (print_operand): In `r' case, recognize any kind of zero. From-SVN: r1202 --- diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 080936a8dc2..78523de99ed 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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;