[LLVMdev] How do downcast signed integers?

Mikael Lyngvig mikael at lyngvig.org
Sun Nov 24 21:08:14 PST 2013


I was looking at "trunc" to downcast a signed integer, say sint32 to
sint16, but it seems to handle unsigned integers only.  How do you downcast
a signed integer?

P.S. This question is for my "Mapping High-Level Constructs to LLVM IR"
document :-)


-- Mikael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131125/60891cce/attachment.html>


More information about the llvm-dev mailing list