From 39e20a117b2f6b2fea64f73875bac3a1db8e14f2 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 17 Mar 2005 05:39:20 +0000 Subject: gdb/ChangeLog: 2005-03-17 Jim Blandy * gdbtypes.c (build_builtin_type_vec64): Include a 'double' member in the union, too, since these registers can hold 64-bit floating point types. gdb/testsuite/ChangeLog: 2005-03-17 Jim Blandy * gdb.arch/e500-regs.exp: Expect to see 'dbl' members in ev registers. --- gdb/ChangeLog | 6 ++++++ gdb/gdbtypes.c | 2 ++ gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.arch/e500-regs.exp | 10 +++++----- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e03daf903d3..33bd7db5ebc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2005-03-17 Jim Blandy + + * gdbtypes.c (build_builtin_type_vec64): Include a 'double' member + in the union, too, since these registers can hold 64-bit floating + point types. + 2004-09-27 Jim Blandy * dwarf2-frame.c (dwarf2_frame_cache): Properly retrieve a frame's diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 1349ffbbe19..5850e8d7508 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -858,6 +858,7 @@ build_builtin_type_vec64 (void) union __gdb_builtin_type_vec64 { int64_t uint64; + double dbl; float v2_float[2]; int32_t v2_int32[2]; int16_t v4_int16[4]; @@ -869,6 +870,7 @@ build_builtin_type_vec64 (void) t = init_composite_type ("__gdb_builtin_type_vec64", TYPE_CODE_UNION); append_composite_type_field (t, "uint64", builtin_type_int64); + append_composite_type_field (t, "dbl", builtin_type_double); append_composite_type_field (t, "v2_float", builtin_type_v2_float); append_composite_type_field (t, "v2_int32", builtin_type_v2_int32); append_composite_type_field (t, "v4_int16", builtin_type_v4_int16); diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 73669d99ccd..3028e230be4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-03-17 Jim Blandy + + * gdb.arch/e500-regs.exp: Expect to see 'dbl' members in ev + registers. + 2004-07-27 Michael Chastain * gdb.ada/gnat_ada.gpr.in: Rename from here ... diff --git a/gdb/testsuite/gdb.arch/e500-regs.exp b/gdb/testsuite/gdb.arch/e500-regs.exp index 30dae0a15f7..690e0c3933b 100644 --- a/gdb/testsuite/gdb.arch/e500-regs.exp +++ b/gdb/testsuite/gdb.arch/e500-regs.exp @@ -32,7 +32,7 @@ if $tracelevel then { set prms_id 0 set bug_id 0 -if ![istarget "powerpc-*eabispe"] then { +if ![istarget "powerpc-*"] then { verbose "Skipping e500 register tests." return } @@ -85,9 +85,9 @@ gdb_expect { # b) the register read (below) also works. if {$endianness == "big"} { -set vector_register ".uint64 = 0x100000001, v2_float = .0x0, 0x0., v2_int32 = .0x1, 0x1., v4_int16 = .0x0, 0x1, 0x0, 0x1., v8_int8 = .0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x1.." +set vector_register ".uint64 = 0x100000001, dbl = 0x0, v2_float = .0x0, 0x0., v2_int32 = .0x1, 0x1., v4_int16 = .0x0, 0x1, 0x0, 0x1., v8_int8 = .0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x1.." } else { -set vector_register ".uint64 = 0x100000001, v2_float = .0x0, 0x0., v2_int32 = .0x1, 0x1., v4_int16 = .0x1, 0x0, 0x1, 0x0., v8_int8 = .0x1, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0.." +set vector_register ".uint64 = 0x100000001, dbl = 0x0, v2_float = .0x0, 0x0., v2_int32 = .0x1, 0x1., v4_int16 = .0x1, 0x0, 0x1, 0x0., v8_int8 = .0x1, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0.." } for {set i 0} {$i < 32} {incr i 1} { @@ -110,9 +110,9 @@ for {set i 0} {$i < 32} {incr i 1} { # the way gdb works. if {$endianness == "big"} { - set decimal_vector ".uint64 = 4294967297, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .0, 1, 0, 1., v8_int8 = ..000.000.000.001.000.000.000.001.." + set decimal_vector ".uint64 = 4294967297, dbl = 0, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .0, 1, 0, 1., v8_int8 = ..000.000.000.001.000.000.000.001.." } else { - set decimal_vector ".uint64 = 4294967297, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .1, 0, 1, 0., v8_int8 = ..001.000.000.000.001.000.000.." + set decimal_vector ".uint64 = 4294967297, dbl = 0, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .1, 0, 1, 0., v8_int8 = ..001.000.000.000.001.000.000.." } for {set i 0} {$i < 32} {incr i 1} { -- cgit v1.2.1