PTX backend do not support sitofp instruction?

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

Does PTX backend support llvm sitofp instruction?

  Seems it doesn't support sitofp, search "Conversion
to f32" in PTXInstrInfo.td.

Regards,
chenwj

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.

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.