aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/gdb.exp
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2011-02-15 13:35:23 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2011-02-15 13:35:23 +0000
commitd9492458a11ca366f79a4c8fb03e312bfe0b047e (patch)
treee16cd6352e047f8b795d5ad30eddc569660c2453 /gdb/testsuite/lib/gdb.exp
parent6fa052f0483dfa6a9f57e530983aef1349a670a3 (diff)
downloadgdb-d9492458a11ca366f79a4c8fb03e312bfe0b047e.zip
gdb-d9492458a11ca366f79a4c8fb03e312bfe0b047e.tar.gz
gdb-d9492458a11ca366f79a4c8fb03e312bfe0b047e.tar.bz2
gdb/
* rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for the EFP register set size. (efpr_pseudo_register_read): Use regcache_raw_read_part to read data from the VMX register. (efpr_pseudo_register_write): Use regcache_raw_write_part to read and write data from/to the VMX register. gdb/testsuite/ * gdb.arch/vsx-regs.exp: Add "vector_register1_vr" and "vector_register2_vr" test strings. Test the extended floating point registers (F32~F63). * lib/gdb.exp (skip_vsx_tests): Update compile flags for the IBM XL C compiler. Make the test program use a register provided by the compiler for the lxvd2x instruction.
Diffstat (limited to 'gdb/testsuite/lib/gdb.exp')
-rw-r--r--gdb/testsuite/lib/gdb.exp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 5a3f1fc..d523d8e 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1686,7 +1686,7 @@ proc skip_vsx_tests {} {
if [test_compiler_info gcc*] {
set compile_flags "$compile_flags additional_flags=-mvsx"
} elseif [test_compiler_info xlc*] {
- set compile_flags "$compile_flags additional_flags=-qvsx"
+ set compile_flags "$compile_flags additional_flags=-qasm=gcc"
} else {
verbose "Could not compile with vsx support, returning 1" 2
return 1
@@ -1697,10 +1697,11 @@ proc skip_vsx_tests {} {
set f [open $src "w"]
puts $f "int main() {"
+ puts $f " double a\[2\] = { 1.0, 2.0 };"
puts $f "#ifdef __MACH__"
- puts $f " asm volatile (\"lxvd2x v0,v0,v0\");"
+ puts $f " asm volatile (\"lxvd2x v0,v0,%\[addr\]\" : : \[addr\] \"r\" (a));"
puts $f "#else"
- puts $f " asm volatile (\"lxvd2x 0,0,0\");"
+ puts $f " asm volatile (\"lxvd2x 0,0,%\[addr\]\" : : \[addr\] \"r\" (a));"
puts $f "#endif"
puts $f " return 0; }"
close $f