| OLD | NEW |
| 1 # This testcase is part of GDB, the GNU debugger. | 1 # This testcase is part of GDB, the GNU debugger. |
| 2 | 2 |
| 3 # Copyright 2008-2012 Free Software Foundation, Inc. | 3 # Copyright 2008-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 # This program is free software; you can redistribute it and/or modify | 5 # This program is free software; you can redistribute it and/or modify |
| 6 # it under the terms of the GNU General Public License as published by | 6 # it under the terms of the GNU General Public License as published by |
| 7 # the Free Software Foundation; either version 3 of the License, or | 7 # the Free Software Foundation; either version 3 of the License, or |
| 8 # (at your option) any later version. | 8 # (at your option) any later version. |
| 9 # | 9 # |
| 10 # This program is distributed in the hope that it will be useful, | 10 # This program is distributed in the hope that it will be useful, |
| 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 # GNU General Public License for more details. | 13 # GNU General Public License for more details. |
| 14 # | 14 # |
| 15 # You should have received a copy of the GNU General Public License | 15 # You should have received a copy of the GNU General Public License |
| 16 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
| 18 # Please email any bugs, comments, and/or additions to this file to: | 18 # Please email any bugs, comments, and/or additions to this file to: |
| 19 # bug-gdb@gnu.org | 19 # bug-gdb@gnu.org |
| 20 | 20 |
| 21 # Testcase for ppc decimal128 pseudo-registers. | 21 # Testcase for ppc decimal128 pseudo-registers. |
| 22 | 22 |
| 23 if $tracelevel then { | |
| 24 strace $tracelevel | |
| 25 } | |
| 26 | |
| 27 if ![istarget "powerpc64-*"] then { | 23 if ![istarget "powerpc64-*"] then { |
| 28 verbose "Skipping powerpc Decimal128 pseudo-registers testcase." | 24 verbose "Skipping powerpc Decimal128 pseudo-registers testcase." |
| 29 return | 25 return |
| 30 } | 26 } |
| 31 | 27 |
| 32 set testfile "powerpc-d128-regs" | 28 set testfile "powerpc-d128-regs" |
| 33 set srcfile ${testfile}.c | 29 set srcfile ${testfile}.c |
| 34 set binfile ${objdir}/${subdir}/${testfile} | 30 set binfile ${objdir}/${subdir}/${testfile} |
| 35 | 31 |
| 36 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {qui
et debug}] != "" } { | 32 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {qui
et debug}] != "" } { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 67 | 63 |
| 68 gdb_test "info reg f[expr 2*$i]" \ | 64 gdb_test "info reg f[expr 2*$i]" \ |
| 69 "f[expr 2*$i]\[ \]*8\.608957309287334e\-145\[\t\]*\\(raw 0x220580000000
0000\\)" \ | 65 "f[expr 2*$i]\[ \]*8\.608957309287334e\-145\[\t\]*\\(raw 0x220580000000
0000\\)" \ |
| 70 "Testing lower half of dl$i register" | 66 "Testing lower half of dl$i register" |
| 71 | 67 |
| 72 gdb_test "info reg f[expr 2*$i+1]" \ | 68 gdb_test "info reg f[expr 2*$i+1]" \ |
| 73 "f[expr 2*$i+1]\[ \]*9\.7841140127686122e\-314\[\t\]*\\(raw 0x000000049
c5de09c\\)" \ | 69 "f[expr 2*$i+1]\[ \]*9\.7841140127686122e\-314\[\t\]*\\(raw 0x000000049
c5de09c\\)" \ |
| 74 "Testing upper half of dl$i register" | 70 "Testing upper half of dl$i register" |
| 75 | 71 |
| 76 } | 72 } |
| OLD | NEW |