RS6000 Add support to print vector register contents as float128
authorCarl Love <cel@us.ibm.com>
Fri, 26 Mar 2021 21:54:47 +0000 (16:54 -0500)
committerCarl Love <cel@us.ibm.com>
Mon, 12 Apr 2021 15:36:10 +0000 (10:36 -0500)
commit6ba4cb845bd319f11d1caf42de5156daed28ff9d
tree673ad94f5aadc261324dd51894c61e2d1c7348cd
parentd4717483730cd8b9d28fd1f0741cd005e9a129e2
RS6000 Add support to print vector register contents as float128

This patch adds a floating point 128-bit composite field to the vsx
register type.  When printing the register with p/f the float128 field will
be printed as a 128-bit floating point value.  A test case to verify the new
vsx register field is visible and correctly prints out the value of a 128-bit
floating point value is also added.

gdb/ChangeLog:

* rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
(rs6000_builtin_type_vec128): Add append_composite_type_field for
float128.

gdb/testsuite/ChangeLog:

* gdb.arch/vsx-vsr-float128.c: New test file.
* gdb.arch/vsx-vsr-float128.exp: New expect file.
gdb/ChangeLog
gdb/rs6000-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/vsx-vsr-float28.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/vsx-vsr-float28.exp [new file with mode: 0644]