On Tue, Jan 10, 2012 at 1:28 PM, Jonathan Ragan-Kelley <jrk at
csail.mit.edu>wrote:
> From what I can tell, the truncstore paths all fail instruction selection
> in the current PTX backend. This is easy to work around for int types >=
16
> bits by setting the truncstore action to expand in PTXISelLowering.cpp, but
> this cannot handle i8 values, since the PTX backend has no register
> representation for i8s. As a result of all this, it is not possible to
> store to i8 pointers at all.
>
> PTX does support truncating stores, including to i8s. (ld/st and cvt are
> the only ops which work with i8 types.)
>
> Is this a known issue?
>
Yes, this is known. I've been too swamped with (mostly) unrelated work the
last month or so. It's on my to-do list, but patches are always welcome. :)
>
> I'm far from a master of the SelectionDAG infrastructure, though this
> seems like it should not be a terribly hard addition.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
--
Thanks,
Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120111/43dd269f/attachment.html>