[LLVMdev] truncstore fails in PTX backend

Jonathan Ragan-Kelley jrk at csail.mit.edu
Tue Jan 10 10:28:53 PST 2012


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?

I'm far from a master of the SelectionDAG infrastructure, though this seems like it should not be a terribly hard addition.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120110/c6a9458f/attachment.bin>


More information about the llvm-dev mailing list