[PATCH] D114099: Enable `_Float16` type support on X86 without the avx512fp16 flag

Zahira Ammarguellat via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 17 08:59:22 PST 2021


zahiraam created this revision.
zahiraam added reviewers: rjmccall, pengfei, andrew.w.kaylor.
zahiraam requested review of this revision.
Herald added a project: clang.

The _Float16 type is supported on x86 systems with SSE2 enabled. Operations are emulated by software emulation and “float” instructions. This patch is allowing the support of _Float16 type without the use of -max512fp16 flag. The final goal being, perform _Float16 emulation for all arithmetic expressions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114099

Files:
  clang/docs/LanguageExtensions.rst
  clang/docs/ReleaseNotes.rst
  clang/lib/Basic/Targets/X86.cpp
  clang/test/CodeGen/X86/Float16-arithmetic.c
  clang/test/CodeGen/X86/avx512fp16-abi.c
  clang/test/CodeGen/X86/avx512fp16-complex.c
  clang/test/CodeGen/X86/fp16-abi.c
  clang/test/Sema/Float16.c
  clang/test/Sema/conversion-target-dep.c
  clang/test/SemaCXX/Float16.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114099.387959.patch
Type: text/x-patch
Size: 9818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211117/fed27bcc/attachment.bin>


More information about the cfe-commits mailing list