[LLVMdev] 16 bit floats

Eli Friedman eli.friedman at gmail.com
Thu Feb 5 17:47:40 PST 2009


On Thu, Feb 5, 2009 at 2:33 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:
> short a = load_from_memory(short_ptr, index);
> and
> half a = load_from_memory(half_ptr, index);

I was suggesting something more like the following pseudo-C:
short a = load_from_memory(short_ptr, index);
float a = convert_f16_f32(load_from_memory(half_ptr, index));

-Eli



More information about the llvm-dev mailing list