rjmccall added a comment.

So, this is still approach #4, i.e. changing the types of expressions, which is 
not what GCC appears to be doing: https://godbolt.org/z/67hqeb37h.  You need a 
custom emitter in IRGen for `_Float16`-typed arithmetic expressions.



================
Comment at: clang/lib/Sema/SemaExpr.cpp:1158
+        !S.getASTContext().getTargetInfo().hasLegalHalfType()) {
+      // Wen the RHS is complex_float16 and the LHSType is a Float
+      // then promote the precision of the LHS (less precise type is 
converted).
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113107/new/

https://reviews.llvm.org/D113107

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D113107: Suppo... Zahira Ammarguellat via Phabricator via cfe-commits
    • [PATCH] D113107: ... John McCall via Phabricator via cfe-commits

Reply via email to