linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PowerPC assembler question
@ 2013-06-09 23:01 Erik de Castro Lopo
  0 siblings, 0 replies; 8+ messages in thread
From: Erik de Castro Lopo @ 2013-06-09 23:01 UTC (permalink / raw)
  To: linuxppc-dev

Hi all,

I'm trying to fix a problem in the PowerPC backend of the Glasgow
Haskell Compiler (GHC) and have a problem with the following
instruction form:

    lwz     30, .label - (1b)(31)

Reading the documentation I could find, I have figured out that this
loads a 16 bit value into register 30. How it calculates that 16 bit
value has got me somewhat flumoxed.

Anybody care to explain?

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* PowerPC assembler question
@ 2013-06-09 23:01 Erik de Castro Lopo
  2013-06-09 23:21 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 8+ messages in thread
From: Erik de Castro Lopo @ 2013-06-09 23:01 UTC (permalink / raw)
  To: linuxppc-dev

Hi all,

I'm trying to fix a problem in the PowerPC backend of the Glasgow
Haskell Compiler (GHC) and have a problem with the following
instruction form:

    lwz     30, .label - (1b)(31)

Reading the documentation I could find, I have figured out that this
loads a 16 bit value into register 30. How it calculates that 16 bit
value has got me somewhat flumoxed.

Anybody care to explain?

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-17  2:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-09 23:01 PowerPC assembler question Erik de Castro Lopo
  -- strict thread matches above, loose matches on Subject: below --
2013-06-09 23:01 Erik de Castro Lopo
2013-06-09 23:21 ` Benjamin Herrenschmidt
2013-06-10 11:14   ` Erik de Castro Lopo
2013-06-10 12:41     ` David Laight
2013-06-16  6:30       ` Erik de Castro Lopo
2013-06-17  2:55         ` Benjamin Herrenschmidt
2013-06-10 21:43     ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).