All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Thu, 27 Jun 2013 17:26:53 +0000	[thread overview]
Message-ID: <bug-65873-502-DwHKqK2PYx@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-65873-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 803 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=65873

--- Comment #7 from Tom Stellard <tstellar@gmail.com> ---
The SI backend needs to be fixed so it can handle zext i64 loads, but there is
also a bug in libclc.  The vload implementation assumes pointer types are
32-bit:

define <2 x i32> @__clc_vload2_impl_i32__global(i32 %offset,  i32 addrspace(1)*
nocapture %addr) nounwind readonly alwaysinline {
  %1 = ptrtoint i32 addrspace(1)* %addr to i32
  %2 = add i32 %1, %offset
  %3 = inttoptr i32 %2 to <2 x i32> addrspace(1)*
  %4 = load <2 x i32> addrspace(1)* %3, align 4, !tbaa !3
  ret <2 x i32> %4
}

Pointers on SI are 64-bit.  This ptrtoint, add, inttoptr sequence should be
replaced with a getelementptr and a bitcast.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1609 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2013-06-27 17:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18  0:05 [Bug 65873] New: R600/SI: Cannot select store with truncate to 32-bit bugzilla-daemon
2013-06-18  0:06 ` [Bug 65873] " bugzilla-daemon
2013-06-18  0:08 ` bugzilla-daemon
2013-06-18 16:56 ` bugzilla-daemon
2013-06-18 20:17 ` bugzilla-daemon
2013-06-18 20:19 ` bugzilla-daemon
2013-06-18 20:20 ` bugzilla-daemon
2013-06-27 17:26 ` bugzilla-daemon [this message]
2013-06-27 18:18 ` bugzilla-daemon
2013-06-27 20:54 ` bugzilla-daemon
2013-06-27 22:19 ` bugzilla-daemon
2013-06-28  4:27 ` bugzilla-daemon
2013-06-28 14:45 ` bugzilla-daemon
2013-07-15 19:04 ` bugzilla-daemon
2013-07-15 20:26 ` bugzilla-daemon
2013-07-15 23:43 ` bugzilla-daemon

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=bug-65873-502-DwHKqK2PYx@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.