From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 820E73858C83; Wed, 25 Jan 2023 16:21:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 820E73858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674663702; bh=Gl95tsv5nXAeQkI3qMwdjEf4FKedCfcaImgtugOdSlc=; h=From:To:Subject:Date:From; b=DoctcN99RGqYhyvea3HLIYzmQjKxLdPjR5t8plcrBhfiq5bRinhQokZ0Sq4exremx +ncPAo7ny+V1bMZNyhaET4h2MJmO3IotJ9U0pnTqGah1HuVzeipZPsTNq2yjgDpv4I 6/mvgFFdLs56mgSoaQDr2HmZG+Ef0DmiyxTZwznI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Move target check into allow_altivec_tests X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 52c0551e9ac03a54e282f9e17d3291c1c8848a7b X-Git-Newrev: d8f5b7d1d1e8e1f0352848b7066dd133edd50773 Message-Id: <20230125162142.820E73858C83@sourceware.org> Date: Wed, 25 Jan 2023 16:21:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd8f5b7d1d1e8= e1f0352848b7066dd133edd50773 commit d8f5b7d1d1e8e1f0352848b7066dd133edd50773 Author: Tom Tromey Date: Tue Jan 24 12:50:20 2023 -0700 Move target check into allow_altivec_tests =20 Pedro pointed out that only PPC can possibly have altivec, so we can move the target check into allow_altivec_tests. Diff: --- gdb/testsuite/gdb.arch/altivec-abi.exp | 1 - gdb/testsuite/gdb.arch/altivec-regs.exp | 1 - gdb/testsuite/gdb.arch/powerpc-vector-regs.exp | 2 +- gdb/testsuite/lib/gdb.exp | 5 +++++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.arch/altivec-abi.exp b/gdb/testsuite/gdb.arc= h/altivec-abi.exp index 2cc75d4d617..b04858950e8 100644 --- a/gdb/testsuite/gdb.arch/altivec-abi.exp +++ b/gdb/testsuite/gdb.arch/altivec-abi.exp @@ -22,7 +22,6 @@ # =20 require allow_altivec_tests -require {istarget "powerpc*"} =20 standard_testfile =20 diff --git a/gdb/testsuite/gdb.arch/altivec-regs.exp b/gdb/testsuite/gdb.ar= ch/altivec-regs.exp index 315ce1acfb2..6cc32aeff22 100644 --- a/gdb/testsuite/gdb.arch/altivec-regs.exp +++ b/gdb/testsuite/gdb.arch/altivec-regs.exp @@ -22,7 +22,6 @@ # =20 require allow_altivec_tests -require {istarget "powerpc*"} =20 standard_testfile =20 diff --git a/gdb/testsuite/gdb.arch/powerpc-vector-regs.exp b/gdb/testsuite= /gdb.arch/powerpc-vector-regs.exp index 2447d740624..2958af019cb 100644 --- a/gdb/testsuite/gdb.arch/powerpc-vector-regs.exp +++ b/gdb/testsuite/gdb.arch/powerpc-vector-regs.exp @@ -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. =20 -require allow_altivec_tests {[istarget "powerpc*"} +require allow_altivec_tests =20 standard_testfile =20 diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index d30340e1df1..e2af5a252b7 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 } =20 + 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=3D-maltivec"