This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Branch bug in gas on MIPS


On Wed, Aug 18, 2004 at 05:58:19PM +0200, Thiemo Seufer wrote:
> Ralf Baechle wrote:
> > Below little test case demonstrates a gas bug that results in swapping
> > of the two branch instructions and use of bogus destination addresses
> > for the first of the two branches.
> > 
> > [ralf@lappi tmp]$ cat s.s
> > 1:      beqzl   $2, 1b
> >         beq     $4, $5, 1b
> > [ralf@lappi tmp]$ mips-linux-as -mips2 -o s.o s.s
> > [ralf@lappi tmp]$ mips-linux-objdump -d s.o
> >  
> > s.o:     file format elf32-tradbigmips
> >  
> > Disassembly of section .text:
> >  
> > 00000000 <.text>:
> >    0:   1085ffff        beq     a0,a1,0x0
> >    4:   00000000        nop
> >    8:   50400000        beqzl   v0,0xc
> >    c:   00000000        nop
> 
> I applied the appended patch. Daniel, I think this should also go
> in the branch.

OK.

-- 
Daniel Jacobowitz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]