From: Dibyendu Majumdar <mobile@majumdar.org.uk>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Sparse Mailing-list <linux-sparse@vger.kernel.org>
Subject: Re: sparse-llvm potential error in linearized output
Date: Sun, 12 Mar 2017 16:52:12 +0000 [thread overview]
Message-ID: <CACXZuxf5CtaZj4uk1Rq+M3pys04F4OP7AOWPvDTEtV5JrM_udg@mail.gmail.com> (raw)
In-Reply-To: <CA+55aFyaW01tfG5LP+aeV-hSppzhqW7gCV7EM2OmxbJyg0cBXw@mail.gmail.com>
On 12 March 2017 at 16:27, Linus Torvalds <torvalds@linux-foundation.org> wrote:
> On Mar 12, 2017 6:04 AM, "Dibyendu Majumdar" <mobile@majumdar.org.uk> wrote:
> load.64 %r3 <- 0[randomletters]
>
>
> Looks fine to me.
>
> You have a variable called randomletters, and it's a pointer to a char. That
> 64-bit load just loads that pointer value from the variable into %r3.
>
> The sparse linearized format only has one memory access model: load with
> constant offset. The base can either be a symbol address (like in this case)
> or a register.
>
Ok thanks.
Regards
Dibyendu
prev parent reply other threads:[~2017-03-12 16:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-12 13:04 sparse-llvm potential error in linearized output Dibyendu Majumdar
[not found] ` <CA+55aFzqZozMb0A4HMJ8UTNEV+LqHWXQsSBrPLMts_vkxsKtQA@mail.gmail.com>
[not found] ` <CA+55aFxuovvof9UhSAnQMuBjEr0xd8qxbDSV1cpi_ubWx386Zg@mail.gmail.com>
[not found] ` <CA+55aFyaW01tfG5LP+aeV-hSppzhqW7gCV7EM2OmxbJyg0cBXw@mail.gmail.com>
2017-03-12 16:52 ` Dibyendu Majumdar [this message]
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=CACXZuxf5CtaZj4uk1Rq+M3pys04F4OP7AOWPvDTEtV5JrM_udg@mail.gmail.com \
--to=mobile@majumdar.org.uk \
--cc=linux-sparse@vger.kernel.org \
--cc=torvalds@linux-foundation.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 NNTP newsgroup(s).