public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* m68k : why is bra an alias for braw, not jra
@ 2006-03-21 11:01 Philippe De Muyter
  2006-04-07 15:37 ` Nick Clifton
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe De Muyter @ 2006-03-21 11:01 UTC (permalink / raw)
  To: binutils mailing list

All,

In the m68k assembler, I wonder why `bra' and friends are alias for their
`bxxw' counterparts.

It seems to me that if someone needs a word-sized bra insn, (s)he will
use the braw variant.

And if one writes no size specification for a `bra' instruction the assembler
should be free to choose the most efficient way to generate it, i.e.
a `brab' if possible of even a `bral' if needed.

IIRC, that's also what the Motorola assembler did in Motorola's Unix System V.

It is also what `gcc/config/m68k/lb1sf68.asm' expects in gcc.  If you look
at this file, you'll see that it is full of `bra', `beq', `bge' etc., where
the intent is clearly to let the assembler decide.

I know that there exists a `jra' or `jbra' keyword, but that's not the
natural way of writing if you write assembler code using your Motorola
reference manual as base.

If no-one objects, I'll submit a patch

Philippe

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-07 15:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-21 11:01 m68k : why is bra an alias for braw, not jra Philippe De Muyter
2006-04-07 15:37 ` Nick Clifton
2006-04-07 15:53   ` Dave Korn
2006-04-07 16:48   ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).