| OLD | NEW |
| 1 # Copyright 2003-2004, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2003-2004, 2007-2012 Free Software Foundation, Inc. |
| 2 # | 2 # |
| 3 # This program is free software; you can redistribute it and/or modify | 3 # This program is free software; you can redistribute it and/or modify |
| 4 # it under the terms of the GNU General Public License as published by | 4 # it under the terms of the GNU General Public License as published by |
| 5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
| 6 # (at your option) any later version. | 6 # (at your option) any later version. |
| 7 # | 7 # |
| 8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
| 12 # | 12 # |
| 13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
| 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 # | 15 # |
| 16 | 16 |
| 17 # Tests for Powerpc E500 register setting and fetching | 17 # Tests for Powerpc E500 register setting and fetching |
| 18 | 18 |
| 19 if $tracelevel then { | |
| 20 strace $tracelevel | |
| 21 } | |
| 22 | |
| 23 # | 19 # |
| 24 # Test the use of registers, especially E500 registers, for Powerpc. | 20 # Test the use of registers, especially E500 registers, for Powerpc. |
| 25 # This file uses e500-regs.c for input. | 21 # This file uses e500-regs.c for input. |
| 26 # | 22 # |
| 27 | 23 |
| 28 | 24 |
| 29 if ![istarget "powerpc-*eabispe"] then { | 25 if ![istarget "powerpc-*eabispe"] then { |
| 30 verbose "Skipping e500 register tests." | 26 verbose "Skipping e500 register tests." |
| 31 return | 27 return |
| 32 } | 28 } |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 gdb_test "down" \ | 207 gdb_test "down" \ |
| 212 ".0 vector_fun \\(a=.2, 2., b=.3, 3.\\) at.*e500-regs.c.*c = __ev_and \\(a, b
\\);" \ | 208 ".0 vector_fun \\(a=.2, 2., b=.3, 3.\\) at.*e500-regs.c.*c = __ev_and \\(a, b
\\);" \ |
| 213 "down to vector_fun" | 209 "down to vector_fun" |
| 214 | 210 |
| 215 gdb_test "finish" \ | 211 gdb_test "finish" \ |
| 216 "Run till exit from .0 vector_fun \\(a=.2, 2., b=.3, 3.\\) at.*e500-regs.c.*m
ain \\(\\) at.*e500-regs.c.*z = vector_fun \\(x, y\\);.*Value returned is.*= .2,
2." \ | 212 "Run till exit from .0 vector_fun \\(a=.2, 2., b=.3, 3.\\) at.*e500-regs.c.*m
ain \\(\\) at.*e500-regs.c.*z = vector_fun \\(x, y\\);.*Value returned is.*= .2,
2." \ |
| 217 "finish returned correct value" | 213 "finish returned correct value" |
| 218 | 214 |
| 219 | 215 |
| 220 | 216 |
| OLD | NEW |