Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jkay@cs.ucsd.edu (Jon Kay)
Subject: Re: Alpha Assmebly question: LDQ_U r31_zero,0(r30_sp) showing up?!
Date: 19 Jan 94 02:14:10 GMT	[thread overview]
Message-ID: <59732@sdcc12.ucsd.edu> (raw)
In-Reply-To: 2hfki4INNj0h@jhunix.hcf.jhu.edu

In article <2hfki4INNj0h@jhunix.hcf.jhu.edu> philippe@jhunix.hcf.jhu.edu (Philippe Pouliquen) writes:
>In article <ASAH.94Jan16212209@ginsberg.cs.Berkeley.EDU> asah@cs.Berkeley.EDU (Adam Sah) writes:
>>What does the following alpha assembly instruction _do_?
>>LDQ_U r31_zero,0(r30_sp)
>>According to the manual, it reads the memory address out of stack pointer,
>>  masking over misalignment, and drops it off in the bit bucket, without
>>  changing r30_sp. ... In other words, nothing.
>>And yet, I see this pop up all the time when I examine code output from the
>>  C compiler, both gcc as well as native cc.
>>What am I missing?
>
>I don't know. :-)
>
>But I do have a some guesses. The instruction may be an expensive
>NOP. ...

My theory is that it's the "start fetching cache line" instruction.
Of course, you can fetch a cache line by loading to a normal register,
but then you get frozen due to interlocks when you actually try to use
the data that hasn't shown up yet.  I don't guess there's much point
in putting interlocks on register zero.

Of course, I think this because I've spent the last several weeks
fervently wishing the MIPS R3000 had such an instruction (on the R3000
you get one load delay slot and then you freeze). 

So how are things these days, Philippe?

							Jon


  reply	other threads:[~1994-01-19  2:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-01-17  5:22 Alpha Assmebly question: LDQ_U r31_zero,0(r30_sp) showing up?! Adam Sah
1994-01-18  3:20 ` Philippe Pouliquen
1994-01-19  2:14   ` Jon Kay [this message]
1994-01-19 20:46 ` Joseph Martin
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox