[LLVMdev] 16 bit floats
Villmow, Micah
Micah.Villmow at amd.com
Thu Feb 5 14:38:09 PST 2009
Thanks for the clarification. This is probably what I will end up doing.
________________________________
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Chris Lattner
Sent: Thursday, February 05, 2009 2:34 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] 16 bit floats
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.llvm.org/pipermail/llvm-dev/attachments/20090205/6344154b/attachment.html>
More information about the llvm-dev
mailing list