[PATCH] CodeGen: convert double -> __fp16 in one step

Ahmed Bougacha ahmed.bougacha at gmail.com
Wed Feb 11 16:49:32 PST 2015


Hi all,

Ping for Tim's patch!

I rebased it and added the one-step __fp16->double conversion, which, while not necessary for correctness, is nice to have (if only for symmetry.)
We're still missing the libcalls, so this will break the conversions from/to double.  However, I agree with Tim in that it's better than incorrect results.

-Ahmed


http://reviews.llvm.org/D4602

Files:
  lib/CodeGen/CGExprScalar.cpp
  test/CodeGen/fp16-ops.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4602.19797.patch
Type: text/x-patch
Size: 4659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150212/1b1bc78f/attachment.bin>


More information about the cfe-commits mailing list