public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rony Paul <ronypaul77@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Re: about named address space
Date: Tue, 24 May 2011 11:56:00 -0000	[thread overview]
Message-ID: <BANLkTikE2p1R-ac=e+Vy=cE+4ETsho9WoQ@mail.gmail.com> (raw)
In-Reply-To: <mcrsjs8379w.fsf@coign.corp.google.com>

On Sat, May 21, 2011 at 8:19 AM, Ian Lance Taylor <iant@google.com> wrote:
> Rony Paul <ronypaul77@gmail.com> writes:
>
>> Can you explain me the following piece of code?
>>
>>       rtx result, ls;
>>
>>       ls = gen_const_mem (DImode,
>>                         gen_rtx_SYMBOL_REF (Pmode, "__ea_local_store"));
>
> Build a memory reference to the address __ea_local_store in DImode
> (64-bit).
>
>>       set_mem_align (ls, 128);
>
> Set the alignment of that memory to 128 bits.
>
>>       result = gen_reg_rtx (Pmode);
>
> Build a pseudo-register of type Pmode.
>
>>       ls = force_reg (Pmode, convert_modes (Pmode, DImode, ls, 1));
>
> Copy ls to a new pseudo-register, converting it from DImode to Pmode.
>
>>       op = force_reg (Pmode, convert_modes (Pmode, EAmode, op, 1));
>
> Copy op to a new pseudo-register, converting it from EAmode to Pmode.
>
>>       ls = emit_conditional_move (ls, NE, op, const0_rtx, Pmode,
>>                                         ls, const0_rtx, Pmode, 1);
>
> Equivalent to ls = op != 0 ? ls : 0.
>
>>       emit_insn (gen_subsi3 (result, op, ls));
>
> Equivalent to result = op - ls.
>
> So basically if op is not 0, this subtracts __ea_local_store from it.
>
> Ian
>

Hello,

I user declare a variable "x", then when compiler executes that and
stores in memory, can  you tell me what is the rtx code for storing
that variable? and in which file in GCC it is done?

-Rony

  reply	other threads:[~2011-05-23 13:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17 16:44 Rony Paul
2011-05-20 19:40 ` Rony Paul
2011-05-21  7:15   ` Ian Lance Taylor
2011-05-24 11:56     ` Rony Paul [this message]
2011-05-24 20:25       ` Ian Lance Taylor
2011-05-28  8:47         ` Rony Paul
2011-05-28 23:32           ` Ian Lance Taylor
2011-06-06 10:44             ` Rony Paul
2011-06-06 19:33               ` Rony Paul
2011-06-06 19:51                 ` Ian Lance Taylor
     [not found] <BANLkTinKZYCvTij1-7-X8+-_Zo_e77Y=8Q@mail.gmail.com>
     [not found] ` <mcr7ha63553.fsf@coign.corp.google.com>
2011-05-04 15:45   ` Rony Paul
2011-05-04 17:35     ` Ian Lance Taylor
  -- strict thread matches above, loose matches on Subject: below --
2011-05-02  9:18 Rony Paul
2011-05-02 20:14 ` Ian Lance Taylor

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='BANLkTikE2p1R-ac=e+Vy=cE+4ETsho9WoQ@mail.gmail.com' \
    --to=ronypaul77@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).