public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Erik de Castro Lopo <mle+cl@mega-nerd•com>
To: linuxppc-dev@lists•ozlabs.org
Subject: PowerPC assembler question
Date: Mon, 10 Jun 2013 09:01:35 +1000	[thread overview]
Message-ID: <20130610090135.a002eba2401c06eedfa7b7ec@mega-nerd.com> (raw)

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/

             reply	other threads:[~2013-06-09 23:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-09 23:01 Erik de Castro Lopo [this message]
2013-06-09 23:21 ` PowerPC assembler question 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
  -- strict thread matches above, loose matches on Subject: below --
2013-06-09 23:01 Erik de Castro Lopo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130610090135.a002eba2401c06eedfa7b7ec@mega-nerd.com \
    --to=mle+cl@mega-nerd$(echo .)com \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox