aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sparc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-sparc.c')
-rw-r--r--gas/config/tc-sparc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index d06d3b3..ad8248b 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -1018,9 +1018,9 @@ sparc_ip (str)
}
else
{
- if (num < 1 || 31 < num)
+ if (num < 0 || 31 < num)
{
- error_message = ": asr number must be between 1 and 31";
+ error_message = ": asr number must be between 0 and 31";
goto error;
}
}