MN10300 gas: reject invalid uses of `epsw'

Alexandre Oliva aoliva@redhat.com
Mon Feb 11 08:34:00 GMT 2002


When assembling for the original mn10300/AM30, we accept `epsw' as a
symbol name.  On AM33, `epsw' became a register name, that can be
copied only to data registers with `mov epsw, d[0-3]'.  We currently
accept silently instructions such as `mov epsw, a[0-3]' and encode
`epsw' as a symbol name.

I'm pretty sure we should treat epsw as a register name whenever we
encounter it on AM33, but I'm not sure what to do about epsw and pc
when we encounter them while assembling for the AM30.  It seems to me
that they should be regarded as symbol names, since code written
originally for the AM30 could not have known that these names were
going to be reserved, and might well have used them.  On the other
hand, when porting code from AM30 to AM33, it might be nice to have
uses of register names available on AM33 as errors, so I'm confused as
to what would be best to do.

Comments?  Ok to install?  Ok for the 2.12 branch?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: am33-gas-other-regs.patch
Type: text/x-patch
Size: 1739 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20020211/4859349b/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Binutils mailing list