Skip to content

Commit d8f5b7d

Browse files
committed
Move target check into allow_altivec_tests
Pedro pointed out that only PPC can possibly have altivec, so we can move the target check into allow_altivec_tests.
1 parent 52c0551 commit d8f5b7d

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

gdb/testsuite/gdb.arch/altivec-abi.exp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#
2323

2424
require allow_altivec_tests
25-
require {istarget "powerpc*"}
2625

2726
standard_testfile
2827

gdb/testsuite/gdb.arch/altivec-regs.exp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#
2323

2424
require allow_altivec_tests
25-
require {istarget "powerpc*"}
2625

2726
standard_testfile
2827

gdb/testsuite/gdb.arch/powerpc-vector-regs.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# 0 to 31 in each of the 16 bytes of each corresponding register, and
2121
# we then check if gdb sees these same values.
2222

23-
require allow_altivec_tests {[istarget "powerpc*"}
23+
require allow_altivec_tests
2424

2525
standard_testfile
2626

gdb/testsuite/lib/gdb.exp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,6 +3471,11 @@ gdb_caching_proc allow_altivec_tests {
34713471
return 0
34723472
}
34733473

3474+
if {![istarget powerpc*]} {
3475+
verbose "$me: PPC target required, returning 0" 2
3476+
return 0
3477+
}
3478+
34743479
# Make sure we have a compiler that understands altivec.
34753480
if [test_compiler_info gcc*] {
34763481
set compile_flags "additional_flags=-maltivec"

0 commit comments

Comments
 (0)