Add half support for AVX512 register view.
authorFelix Willgerodt <felix.willgerodt@intel.com>
Fri, 11 Sep 2020 13:43:54 +0000 (15:43 +0200)
committerFelix Willgerodt <felix.willgerodt@intel.com>
Fri, 3 Sep 2021 13:18:31 +0000 (15:18 +0200)
commit8661f70c499e9a6f2d8b12241d663881452178ae
tree8164f14d7b716fa22f74211ed61fb39059c5c62b
parent41bbbb89c4d31a15ef317dd7de8af749d2a35e5f
Add half support for AVX512 register view.

This adds support for the half datatype, FP16, to the AVX512 register printing.

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

* i386-tdep.c (i386_zmm_type) <v32_half>: New field.
(i386_ymm_type) <v16_half>: New field.
(i386_gdbarch_init): Add set_gdbarch_half_format.
* features/i386/64bit-avx512.xml: Add half type.
* features/i386/64bit-avx512.c: Regenerated.
* features/i386/64bit-sse.xml: Add half type.
* features/i386/64bit-sse.c: Regenerated.

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

* gdb.arch/x86-avx512fp16.c: New file.
* gdb.arch/x86-avx512fp16.exp: New file.
* lib/gdb.exp (skip_avx512fp16_tests): New function.
gdb/features/i386/32bit-sse.c
gdb/features/i386/32bit-sse.xml
gdb/features/i386/64bit-avx512.c
gdb/features/i386/64bit-avx512.xml
gdb/features/i386/64bit-sse.c
gdb/features/i386/64bit-sse.xml
gdb/i386-tdep.c
gdb/testsuite/gdb.arch/x86-avx512fp16.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/x86-avx512fp16.exp [new file with mode: 0644]
gdb/testsuite/lib/gdb.exp