[LLVMdev] 16 bit floats
Eli Friedman
eli.friedman at gmail.com
Thu Feb 5 13:53:53 PST 2009
On Thu, Feb 5, 2009 at 1:34 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:
> 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?
In this case, you only really need two currently unsupported
instructions: one that does f16->f32, and one that does f32->f16;
adding target intrinsics to do that should be easy. You can make the
instrinsics take an i16 so that the type system doesn't have to be
aware of f16 values.
-Eli
More information about the llvm-dev
mailing list