Hi all, Does PTX backend support llvm sitofp instruction? I failed to compile my llvm source when use llc -march=ptx32. The reason is that the source has a sitofp instruction. After i changed the instruction into uitofp manually, it passed. Thanks in advance, best, Yabin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110926/be6406e1/attachment.html>
> Does PTX backend support llvm sitofp instruction?Seems it doesn't support sitofp, search "Conversion to f32" in PTXInstrInfo.td. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
Duncan Sands
2011-Sep-26 10:40 UTC
[LLVMdev] PTX backend do not support sitofp instruction?
On 09/26/11 12:11, 陳韋任 wrote:>> Does PTX backend support llvm sitofp instruction? > > Seems it doesn't support sitofp, search "Conversion > to f32" in PTXInstrInfo.td.IIRC, LegalizeDAG has some code to implement sitofp in terms of uitofp (or maybe uitofp in terms of sitofp, I don't recall). Ciao, Duncan.
Justin Holewinski
2011-Sep-26 12:32 UTC
[LLVMdev] PTX backend do not support sitofp instruction?
On Sun, Sep 25, 2011 at 11:39 PM, Yabin Hu <yabin.hwu at gmail.com> wrote:> Hi all, > > Does PTX backend support llvm sitofp instruction? >Type conversion has not received much love yet. If you send me a test case, I'll try to create a fix.> > I failed to compile my llvm source when use llc -march=ptx32. > The reason is that the source has a sitofp instruction. > After i changed the instruction into uitofp manually, it passed. > > > Thanks in advance, > > best, > Yabin > > _______________________________________________ > 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/20110926/fe4b0d5d/attachment.html>