[LLVMdev] Proposal for adding rounding variant of fpto?i instructions

Anton Lokhmotov Anton.Lokhmotov at arm.com
Mon Jul 12 09:28:43 PDT 2010

Hi Peter,

> I would appreciate comments/feedback on this proposal to extend the
> fpto?i instructions to support rounding.
I think this might be useful. Actually, LLVM specifies that fpto?i convert
their operand into the nearest (rounding towards zero) signed integer value.
Do you have other rounding modes in mind? Currently I use custom metadata to
represent conversions with other rounding modes.

Best, Anton.

More information about the llvm-dev mailing list