gdb: Enable finish command and inferior calls for _Float16 on amd64 and i386.
authorFelix Willgerodt <felix.willgerodt@intel.com>
Fri, 9 Jul 2021 13:39:41 +0000 (15:39 +0200)
committerFelix Willgerodt <felix.willgerodt@intel.com>
Fri, 3 Sep 2021 13:18:31 +0000 (15:18 +0200)
commit0b99a66053fa1e93a984f75a7a3d5343c74882fb
tree733a5a9872601efd6f30ca10ca26f37b9db5a97a
parent8661f70c499e9a6f2d8b12241d663881452178ae
gdb: Enable finish command and inferior calls for _Float16 on amd64 and i386.

Values of type _Float16 and _Float16 _Complex can now be used on CPUs with
AVX512-FP16 support. Return values of those types are located in XMM0.
Compiler support for gcc and clang is in progress, see e.g.:
https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574117.html

gdb/ChangeLog:
2021-07-21  Felix Willgerodt  <Felix.Willgerodt@intel.com>

* amd64-tdep.c (amd64_classify): Classify _Float16 and
_Float16 _Complex as AMD64_SSE.
* i386-tdep.c (i386_extract_return_value): Read _Float16 and
_Float16 _Complex from xmm0.

gdb/testsuite/ChangeLog:
2021-07-21  Felix Willgerodt  <Felix.Willgerodt@intel.com>

* gdb.arch/x86-avx512fp16-abi.c: New file.
* gdb.arch/x86-avx512fp16-abi.exp: New file.
gdb/amd64-tdep.c
gdb/i386-tdep.c
gdb/testsuite/gdb.arch/x86-avx512fp16-abi.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp [new file with mode: 0644]