[Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jun 27 10:26:53 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #7 from Tom Stellard <tstellar at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130627/38153bb5/attachment-0001.html>
More information about the dri-devel
mailing list