Patch: Updates on mips testcases
H . J . Lu
hjl@lucon.org
Sat Jun 9 08:42:00 GMT 2001
On Sun, Jun 10, 2001 at 12:03:33AM +0930, Alan Modra wrote:
> On Fri, Jun 08, 2001 at 11:29:46PM -0700, H . J . Lu wrote:
> > +++ gas/mips/relax.s Fri Jun 8 23:12:46 2001
> > @@ -0,0 +1,7 @@
> > +# Source file used to test relaxation.
> > +
> > + .text
> > +foo:
> > + move $2, $3 # just something
> > + .space 0x20000 # to make a 128kb loop body
> > + beq $2, $3, foo
>
> This isn't exactly a failure of relaxation. It's just that the branch
> offset is too big.
>
1. You may see it when compiling certain version of gcc with -O0.
2. The IRIX assembler can handle it just fine. It is turned into
bneq $2, $3, bar
jump to foo
bar:
Since beq is a macro, maybe we can do something about it. We could
do such a macro expansion unconditionally. But it would be nice to
detect when to do it.
H.J.
More information about the Binutils
mailing list