[LLVMdev] 16 bit floats
Chris Lattner
clattner at apple.com
Thu Feb 5 16:33:40 CST 2009
On Feb 5, 2009, at 1:34 PM, Villmow, Micah wrote:
> BGB/Chris,
> I need to do a similar where I convert the 16bit floats to 32bit
> floats on memory operations for both scalar and vector formats. So
> can these operations be implemented without adding 16 bit float
> support natively to LLVM? If so, how?
Just codegen them as i16 in LLVM IR, and use a library function to
convert the i16 into a 32-bit float doing the necessary unpacking.
Similarly for store.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20090205/d756b658/attachment.html
More information about the LLVMdev
mailing list