From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,edf564ae009c8992 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-01-19 01:21:49 PST Path: gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!att-in!csn!magnus.acs.ohio-state.edu!math.ohio-state.edu!cs.utexas.edu!swrinde!network.ucsd.edu!sdcc12!cs!jkay From: jkay@cs.ucsd.edu (Jon Kay) Newsgroups: comp.unix.osf.osf1 Subject: Re: Alpha Assmebly question: LDQ_U r31_zero,0(r30_sp) showing up?! Message-ID: <59732@sdcc12.ucsd.edu> Date: 19 Jan 94 02:14:10 GMT References: <2hfki4INNj0h@jhunix.hcf.jhu.edu> Sender: news@sdcc12.ucsd.edu Organization: UCSD Computer Systems Lab Nntp-Posting-Host: cosenza.ucsd.edu In article <2hfki4INNj0h@jhunix.hcf.jhu.edu> philippe@jhunix.hcf.jhu.edu (Philippe Pouliquen) writes: >In article 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