diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-08 10:37:20 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-13 13:18:57 -0700 |
commit | 5f50c7eb5738f6f9065401a698a83f203592f051 (patch) | |
tree | 6df1b00d43bbde255b6daee8a10d2686012e36e1 /gdb | |
parent | 74dcf0826ee52593254789a328b94867b8d0bca1 (diff) | |
download | fsf-binutils-gdb-5f50c7eb5738f6f9065401a698a83f203592f051.zip fsf-binutils-gdb-5f50c7eb5738f6f9065401a698a83f203592f051.tar.gz fsf-binutils-gdb-5f50c7eb5738f6f9065401a698a83f203592f051.tar.bz2 |
Rename to allow_avx512bf16_tests
This changes skip_avx512bf16_tests to invert the sense, and renames it
to allow_avx512bf16_tests.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.arch/x86-avx512bf16.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp index d77cc08..4ab22a8d 100644 --- a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp +++ b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp @@ -18,7 +18,7 @@ # Test bfloat16 support in AVX512 registers -require !skip_avx512bf16_tests +require allow_avx512bf16_tests standard_testfile diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index b9be98a..b68ea4e 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3699,16 +3699,16 @@ gdb_caching_proc skip_tsx_tests { return $skip_tsx_tests } -# Run a test on the target to see if it supports avx512bf16. Return 0 if so, -# 1 if it does not. Based on 'check_vmx_hw_available' from the GCC testsuite. +# Run a test on the target to see if it supports avx512bf16. Return 1 if so, +# 0 if it does not. Based on 'check_vmx_hw_available' from the GCC testsuite. -gdb_caching_proc skip_avx512bf16_tests { +gdb_caching_proc allow_avx512bf16_tests { global srcdir subdir gdb_prompt inferior_exited_re - set me "skip_avx512bf16_tests" + set me "allow_avx512bf16_tests" if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } { - verbose "$me: target does not support avx512bf16, returning 1" 2 - return 1 + verbose "$me: target does not support avx512bf16, returning 0" 2 + return 0 } # Compile a test program. @@ -3719,7 +3719,7 @@ gdb_caching_proc skip_avx512bf16_tests { } } if {![gdb_simple_compile $me $src executable]} { - return 1 + return 0 } # No error message, compilation succeeded so now run it via gdb. @@ -3732,22 +3732,22 @@ gdb_caching_proc skip_avx512bf16_tests { gdb_expect { -re ".*Illegal instruction.*${gdb_prompt} $" { verbose -log "$me: avx512bf16 hardware not detected." - set skip_avx512bf16_tests 1 + set allow_avx512bf16_tests 0 } -re ".*$inferior_exited_re normally.*${gdb_prompt} $" { verbose -log "$me: avx512bf16 hardware detected." - set skip_avx512bf16_tests 0 + set allow_avx512bf16_tests 1 } default { warning "\n$me: default case taken." - set skip_avx512bf16_tests 1 + set allow_avx512bf16_tests 0 } } gdb_exit remote_file build delete $obj - verbose "$me: returning $skip_avx512bf16_tests" 2 - return $skip_avx512bf16_tests + verbose "$me: returning $allow_avx512bf16_tests" 2 + return $allow_avx512bf16_tests } # Run a test on the target to see if it supports avx512fp16. Return 0 if so, |