This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PATCH: Fix ll/sc for mips
- From: Ralf Baechle <ralf at oss dot sgi dot com>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: Hiroyuki Machida <machida at sm dot sony dot co dot jp>, macro at ds2 dot pg dot gda dot pl, libc-alpha at sources dot redhat dot com, linux-mips at oss dot sgi dot com
- Date: Mon, 4 Feb 2002 08:01:45 +0100
- Subject: Re: PATCH: Fix ll/sc for mips
- References: <20020131123547.A22759@lucon.org> <Pine.GSO.3.96.1020131230104.9069A-100000@delta.ds2.pg.gda.pl> <20020131144100.A24634@lucon.org> <20020201.123523.50041631.machida@sm.sony.co.jp> <20020131231714.E32690@lucon.org>
On Thu, Jan 31, 2002 at 11:17:14PM -0800, H . J . Lu wrote:
> > Gas will fill delay slots. Same object codes will be produced, so I
> > think you don't have to do that by hand.
>
> It will make the code more readable. We don't have to guess what
> the assembler will do.
Generally speaking a MIPS assembler is free to do arbitrary reordering.
In the past there have been non-GNU assembler that were doing more massive
reordering than gcc does ... Using .set noreorder means you dump the
assembler's intelligence and take full responsibility for dealing with
all interlocks (or the lack thereof) and other performance issues
yourself.
Ralf