projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be8f2c
)
(print_operand): In `r' case, recognize any kind of zero.
author
Richard Stallman
<rms@gnu.org>
Sun, 14 Jun 1992 21:10:53 +0000
(21:10 +0000)
committer
Richard Stallman
<rms@gnu.org>
Sun, 14 Jun 1992 21:10:53 +0000
(21:10 +0000)
From-SVN: r1202
gcc/config/sparc/sparc.c
patch
|
blob
|
history
diff --git
a/gcc/config/sparc/sparc.c
b/gcc/config/sparc/sparc.c
index 080936a8dc21b18df07bce3591efbd0b6cb19100..78523de99ed1b4e96f6cad7bb6fc57e199d90853 100644
(file)
--- 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;