diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1995-08-29 22:48:54 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1995-08-29 22:48:54 +0000 |
commit | 593d18d36cce821332c93cd58b587ed5d0735fb8 (patch) | |
tree | 4d5b51999cfefdd8c08d2fea967b06558ca549f1 /gas | |
parent | 7ec658304ad3bd40e5ae60c10c5c06cb80796a73 (diff) | |
download | gdb-593d18d36cce821332c93cd58b587ed5d0735fb8.zip gdb-593d18d36cce821332c93cd58b587ed5d0735fb8.tar.gz gdb-593d18d36cce821332c93cd58b587ed5d0735fb8.tar.bz2 |
* config/tc-sparc.c (sparc_ip): Clean up ASI support.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-sparc.c | 24 |
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 { |