[X86] Support `_Float16` on SSE2 and up
authorPhoebe Wang <phoebe.wang@intel.com>
Thu, 30 Jun 2022 08:40:29 +0000 (16:40 +0800)
committerPhoebe Wang <phoebe.wang@intel.com>
Thu, 30 Jun 2022 09:21:37 +0000 (17:21 +0800)
commitabeeae570efff38dceccf68f5352809c58ffdda2
treed5a07de1d297f72ea3eb4ab72a57498dad5445ec
parent41f0b6a78143776d673565cfa830849e3b468b8e
[X86] Support `_Float16` on SSE2 and up

This is split from D113107 to address #56204 and https://discourse.llvm.org/t/how-to-build-compiler-rt-for-new-x86-half-float-abi/63366

Reviewed By: zahiraam, rjmccall, bkramer, MaskRay

Differential Revision: https://reviews.llvm.org/D128571
clang/docs/LanguageExtensions.rst
clang/docs/ReleaseNotes.rst
clang/lib/Basic/Targets/X86.cpp
clang/test/CodeGen/X86/Float16-arithmetic.c [new file with mode: 0644]
clang/test/CodeGen/X86/Float16-complex.c [moved from clang/test/CodeGen/X86/avx512fp16-complex.c with 96% similarity]
clang/test/Sema/Float16.c
clang/test/Sema/conversion-target-dep.c
clang/test/SemaCXX/Float16.cpp
compiler-rt/test/builtins/CMakeLists.txt