The _Float16 type is supported on x86 systems with SSE2 enabled.
authorZahira Ammarguellat <zahira.ammarguellat@intel.com>
Wed, 17 Nov 2021 16:53:36 +0000 (11:53 -0500)
committerZahira Ammarguellat <zahira.ammarguellat@intel.com>
Fri, 19 Nov 2021 13:59:50 +0000 (08:59 -0500)
commit6623c02d70c3732dbea59c6d79c69501baf9627b
treebc298a05753063ef44b8d0dbc93883695a440559
parentc2271926a4fc395e05cf75a8e57c2dfab1f02d3d
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.
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/fp16-abi.c [moved from clang/test/CodeGen/X86/avx512fp16-abi.c with 94% similarity]
clang/test/CodeGen/X86/fp16-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