diff options
author | Richard Stallman <rms@gnu.org> | 1992-06-14 21:10:53 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-06-14 21:10:53 +0000 |
commit | 76052e7462b4a4a51e1770ee9c556afcd3abaabf (patch) | |
tree | a0918ac265db3ccfca98d3c3773f809645e7c88d | |
parent | 9be8f2c7fbb34caf8d7321db1a5490f4beb06b68 (diff) | |
download | gcc-76052e7462b4a4a51e1770ee9c556afcd3abaabf.zip gcc-76052e7462b4a4a51e1770ee9c556afcd3abaabf.tar.gz gcc-76052e7462b4a4a51e1770ee9c556afcd3abaabf.tar.bz2 |
(print_operand): In `r' case, recognize any kind of zero.
From-SVN: r1202
-rw-r--r-- | gcc/config/sparc/sparc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 080936a..78523de 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; |