aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-24 12:50:20 -0700
committerTom Tromey <tom@tromey.com>2023-01-25 09:02:11 -0700
commitd8f5b7d1d1e8e1f0352848b7066dd133edd50773 (patch)
tree1437b785f132338da9588df3a7bf4161d448def6 /gdb/testsuite/lib
parent52c0551e9ac03a54e282f9e17d3291c1c8848a7b (diff)
downloadgdb-d8f5b7d1d1e8e1f0352848b7066dd133edd50773.zip
gdb-d8f5b7d1d1e8e1f0352848b7066dd133edd50773.tar.gz
gdb-d8f5b7d1d1e8e1f0352848b7066dd133edd50773.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index d30340e..e2af5a2 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3471,6 +3471,11 @@ gdb_caching_proc allow_altivec_tests {
return 0
}
+ if {![istarget powerpc*]} {
+ verbose "$me: PPC target required, returning 0" 2
+ return 0
+ }
+
# Make sure we have a compiler that understands altivec.
if [test_compiler_info gcc*] {
set compile_flags "additional_flags=-maltivec"