From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 290083858004; Fri, 13 Jan 2023 20:38:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 290083858004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642310; bh=upCNg61jcO/5xD+ouFdtk7ICv8DmLhCI2NnbdKWVymM=; h=From:To:Subject:Date:From; b=vN5MuYNHUvrgQk95avJ42cMmqsqw4QyJBtm+PAuCvnsqtdqhbL3SAUM6phVIyIFZf cyqvDeaq2g1FKodMXuEiGkPEoXEqOUj1V7E0h1pEIqEc8pBUBD6Fxs5hhmJDLRNPbk p4P2TmbkygKNsOPN6NIXdTHk/jSv/YsANE7TlUxc= 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] Rename to allow_avx512fp16_tests X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 5f50c7eb5738f6f9065401a698a83f203592f051 X-Git-Newrev: 6d1df4502357ff7b716e2a34ec614a2a7617d894 Message-Id: <20230113203830.290083858004@sourceware.org> Date: Fri, 13 Jan 2023 20:38:30 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D6d1df4502357= ff7b716e2a34ec614a2a7617d894 commit 6d1df4502357ff7b716e2a34ec614a2a7617d894 Author: Tom Tromey Date: Sun Jan 8 10:39:51 2023 -0700 Rename to allow_avx512fp16_tests =20 This changes skip_avx512fp16_tests to invert the sense, and renames it to allow_avx512fp16_tests. Diff: --- gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp | 2 +- gdb/testsuite/gdb.arch/x86-avx512fp16.exp | 2 +- gdb/testsuite/lib/gdb.exp | 24 ++++++++++++------------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp b/gdb/testsuite/= gdb.arch/x86-avx512fp16-abi.exp index 696a6b8edf1..bf8291a4d0b 100644 --- a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp +++ b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp @@ -15,7 +15,7 @@ =20 # Test support for _Float16 parameters and return values. =20 -require !skip_avx512fp16_tests +require allow_avx512fp16_tests =20 standard_testfile =20 diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp b/gdb/testsuite/gdb.= arch/x86-avx512fp16.exp index 526be1660bf..144b51bfa68 100644 --- a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp +++ b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp @@ -15,7 +15,7 @@ =20 # Test fp16 support in AVX512 registers. =20 -require !skip_avx512fp16_tests +require allow_avx512fp16_tests =20 standard_testfile =20 diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index b68ea4eb5b0..4959af6b2c4 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3750,16 +3750,16 @@ gdb_caching_proc allow_avx512bf16_tests { return $allow_avx512bf16_tests } =20 -# Run a test on the target to see if it supports avx512fp16. Return 0 if = so, -# 1 if it does not. Based on 'check_vmx_hw_available' from the GCC testsu= ite. +# Run a test on the target to see if it supports avx512fp16. Return 1 if = so, +# 0 if it does not. Based on 'check_vmx_hw_available' from the GCC testsu= ite. =20 -gdb_caching_proc skip_avx512fp16_tests { +gdb_caching_proc allow_avx512fp16_tests { global srcdir subdir gdb_prompt inferior_exited_re =20 - set me "skip_avx512fp16_tests" + set me "allow_avx512fp16_tests" if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } { - verbose "$me: target does not support avx512fp16, returning 1" 2 - return 1 + verbose "$me: target does not support avx512fp16, returning 0" 2 + return 0 } =20 # Compile a test program. @@ -3770,7 +3770,7 @@ gdb_caching_proc skip_avx512fp16_tests { } } if {![gdb_simple_compile $me $src executable]} { - return 1 + return 0 } =20 # No error message, compilation succeeded so now run it via gdb. @@ -3783,22 +3783,22 @@ gdb_caching_proc skip_avx512fp16_tests { gdb_expect { -re ".*Illegal instruction.*${gdb_prompt} $" { verbose -log "$me: avx512fp16 hardware not detected." - set skip_avx512fp16_tests 1 + set allow_avx512fp16_tests 0 } -re ".*$inferior_exited_re normally.*${gdb_prompt} $" { verbose -log "$me: avx512fp16 hardware detected." - set skip_avx512fp16_tests 0 + set allow_avx512fp16_tests 1 } default { warning "\n$me: default case taken." - set skip_avx512fp16_tests 1 + set allow_avx512fp16_tests 0 } } gdb_exit remote_file build delete $obj =20 - verbose "$me: returning $skip_avx512fp16_tests" 2 - return $skip_avx512fp16_tests + verbose "$me: returning $allow_avx512fp16_tests" 2 + return $allow_avx512fp16_tests } =20 # Run a test on the target to see if it supports btrace hardware. Return = 0 if so,