| OLD | NEW |
| 1 # Copyright 2010-2012 Free Software Foundation, Inc. | 1 # Copyright 2010-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 # Contributed by Ken Werner <ken.werner@de.ibm.com>. | 16 # Contributed by Ken Werner <ken.werner@de.ibm.com>. |
| 17 # | 17 # |
| 18 # Tests GDBs support for GNU vectors. | 18 # Tests GDBs support for GNU vectors. |
| 19 # http://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html | 19 # http://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html |
| 20 | 20 |
| 21 if $tracelevel { | |
| 22 strace $tracelevel | |
| 23 } | |
| 24 | |
| 25 set testfile "gnu_vector" | 21 set testfile "gnu_vector" |
| 26 set srcfile ${testfile}.c | 22 set srcfile ${testfile}.c |
| 27 set binfile ${objdir}/${subdir}/${testfile} | 23 set binfile ${objdir}/${subdir}/${testfile} |
| 28 | 24 |
| 29 if [get_compiler_info ${binfile}] { | 25 if [get_compiler_info] { |
| 30 return -1 | 26 return -1 |
| 31 } | 27 } |
| 32 | 28 |
| 33 # Check if our compiler is a GCC that suppports the vector extension | 29 # Check if our compiler is a GCC that suppports the vector extension |
| 34 if { ![test_compiler_info gcc-4-*] } { | 30 if { ![test_compiler_info gcc-4-*] } { |
| 35 setup_xfail "*-*-*" | 31 setup_xfail "*-*-*" |
| 36 fail "This compiler can not handle GNU vectors" | 32 fail "This compiler can not handle GNU vectors" |
| 37 return 0 | 33 return 0 |
| 38 } | 34 } |
| 39 | 35 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 gdb_test "print ll2 + i4a" "Cannot perform operation on vectors with different t
ypes" | 123 gdb_test "print ll2 + i4a" "Cannot perform operation on vectors with different t
ypes" |
| 128 gdb_test "print f4a + d2" "Cannot perform operation on vectors with different ty
pes" | 124 gdb_test "print f4a + d2" "Cannot perform operation on vectors with different ty
pes" |
| 129 gdb_test "print d2 + f4a" "Cannot perform operation on vectors with different ty
pes" | 125 gdb_test "print d2 + f4a" "Cannot perform operation on vectors with different ty
pes" |
| 130 gdb_test "print ui4 + i4a" "Cannot perform operation on vectors with different t
ypes" | 126 gdb_test "print ui4 + i4a" "Cannot perform operation on vectors with different t
ypes" |
| 131 gdb_test "print i4a + ui4" "Cannot perform operation on vectors with different t
ypes" | 127 gdb_test "print i4a + ui4" "Cannot perform operation on vectors with different t
ypes" |
| 132 gdb_test "print i4a + i2" "Cannot perform operation on vectors with different ty
pes" | 128 gdb_test "print i4a + i2" "Cannot perform operation on vectors with different ty
pes" |
| 133 gdb_test "print i2 + i4a" "Cannot perform operation on vectors with different ty
pes" | 129 gdb_test "print i2 + i4a" "Cannot perform operation on vectors with different ty
pes" |
| 134 gdb_test "print f4a + f2" "Cannot perform operation on vectors with different ty
pes" | 130 gdb_test "print f4a + f2" "Cannot perform operation on vectors with different ty
pes" |
| 135 gdb_test "print f2 + f4a" "Cannot perform operation on vectors with different ty
pes" | 131 gdb_test "print f2 + f4a" "Cannot perform operation on vectors with different ty
pes" |
| 136 | 132 |
| OLD | NEW |