* config/tc-sparc.c (sparc_ip): Clean up ASI support.

This commit is contained in:
David Edelsohn 1995-08-29 22:48:54 +00:00
parent 7ec658304a
commit 593d18d36c
2 changed files with 14 additions and 14 deletions

View File

@ -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.

View File

@ -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
{