| OLD | NEW |
| 1 # Copyright 2003, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2003, 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 ABI | 17 # Tests for Powerpc e500 ABI |
| 18 | 18 |
| 19 | 19 |
| 20 if $tracelevel then { | |
| 21 strace $tracelevel | |
| 22 } | |
| 23 | |
| 24 # | 20 # |
| 25 # This file uses e500-abi.c for input. | 21 # This file uses e500-abi.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 abi tests." | 26 verbose "Skipping e500 abi tests." |
| 31 return | 27 return |
| 32 } | 28 } |
| 33 | 29 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 72 |
| 77 # Let's step into the function, to see if the args are printed correctly. | 73 # Let's step into the function, to see if the args are printed correctly. |
| 78 gdb_test "step" \ | 74 gdb_test "step" \ |
| 79 $pattern1 \ | 75 $pattern1 \ |
| 80 "step into vec_func" | 76 "step into vec_func" |
| 81 | 77 |
| 82 # Let's see if the result is returned correctly. | 78 # Let's see if the result is returned correctly. |
| 83 gdb_test "finish" \ | 79 gdb_test "finish" \ |
| 84 "Run till exit from .0.* at.*e500-abi.c.*main.*res_vec = vec_func .a_vec,.*goe
s in r3.*Value returned is.*= .6, 63." \ | 80 "Run till exit from .0.* at.*e500-abi.c.*main.*res_vec = vec_func .a_vec,.*goe
s in r3.*Value returned is.*= .6, 63." \ |
| 85 "vector value returned correctly" | 81 "vector value returned correctly" |
| OLD | NEW |