]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move target check into allow_altivec_tests
authorTom Tromey <tom@tromey.com>
Tue, 24 Jan 2023 19:50:20 +0000 (12:50 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 25 Jan 2023 16:02:11 +0000 (09:02 -0700)
Pedro pointed out that only PPC can possibly have altivec, so we can
move the target check into allow_altivec_tests.

gdb/testsuite/gdb.arch/altivec-abi.exp
gdb/testsuite/gdb.arch/altivec-regs.exp
gdb/testsuite/gdb.arch/powerpc-vector-regs.exp
gdb/testsuite/lib/gdb.exp

index 2cc75d4d617b97d3c9f83f20898d968132681a7e..b04858950e8729e56cb9fc978f6655d634a44eb7 100644 (file)
@@ -22,7 +22,6 @@
 #
 
 require allow_altivec_tests
-require {istarget "powerpc*"}
 
 standard_testfile
 
index 315ce1acfb26752790c462485cff8312084685c9..6cc32aeff22a4d12d7392522b22255e20c50be68 100644 (file)
@@ -22,7 +22,6 @@
 #
 
 require allow_altivec_tests
-require {istarget "powerpc*"}
 
 standard_testfile
 
index 2447d7406242f28c8caeda3d925fabdc498a2567..2958af019cb0835db22123fbe51455877a7e2e7f 100644 (file)
@@ -20,7 +20,7 @@
 # 0 to 31 in each of the 16 bytes of each corresponding register, and
 # we then check if gdb sees these same values.
 
-require allow_altivec_tests {[istarget "powerpc*"}
+require allow_altivec_tests
 
 standard_testfile
 
index d30340e1df145b4aa17ad5d9cbeb7b29a9249a47..e2af5a252b74466e822869379e72f83047aa6003 100644 (file)
@@ -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"