aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-sparc.c24
2 files changed, 14 insertions, 14 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 989f601..f8b7c10 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+Tue Aug 29 15:45:37 1995 Doug Evans <dje@canuck.cygnus.com>
+
+ * config/tc-sparc.c (sparc_ip): Clean up ASI support.
+
Tue Aug 29 13:20:27 1995 steve chamberlain <sac@slash.cygnus.com>
* read.c (potable): Rva is new entry.
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index 522d928..2ed4267 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -1548,24 +1548,20 @@ sparc_ip (str)
/* Parse an asi. */
if (*s == '#')
{
- s += 1;
- if (!strncmp (s, "ASI_AIUP", 8))
- asi = 0x10, s += 8;
- else if (!strncmp (s, "ASI_AIUS", 8))
- asi = 0x11, s += 8;
- else if (!strncmp (s, "ASI_PNF", 7))
- asi = 0x82, s += 7;
- else if (!strncmp (s, "ASI_SNF", 7))
- asi = 0x83, s += 7;
- else if (!strncmp (s, "ASI_P", 5))
- asi = 0x80, s += 5;
- else if (!strncmp (s, "ASI_S", 5))
- asi = 0x81, s += 5;
- else
+ char c, *p;
+
+ for (p = s + 1; isalpha (*p) || *p == '_'; ++p)
+ continue;
+ c = *p;
+ *p = 0;
+ asi = sparc_encode_asi (s);
+ *p = c;
+ if (asi == -1)
{
error_message = ": invalid asi name";
goto error;
}
+ s = p;
}
else
{