Use require !skip_avx_*
authorTom Tromey <tom@tromey.com>
Wed, 14 Dec 2022 16:43:02 +0000 (09:43 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:55 +0000 (13:18 -0700)
This changes some tests to use "require" with !skip_avx_*.

gdb/testsuite/gdb.arch/x86-avx512bf16.exp
gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
gdb/testsuite/gdb.arch/x86-avx512fp16.exp

index 61ec1fa93fb726ba5105bd00d18b93df35f08913..d77cc088eb5040188811d6df76b209b004bb9be9 100644 (file)
 
 # Test bfloat16 support in AVX512 registers
 
-if { [skip_avx512bf16_tests] } {
-    unsupported "target does not support AVX512BF16"
-    return -1
-}
+require !skip_avx512bf16_tests
 
 standard_testfile
 
index 2f336d515b2f6e11c3712d7371a84d5bdf5b9404..696a6b8edf198d4c5f096e381a0dcbcb221d0ae0 100644 (file)
 
 # Test support for _Float16 parameters and return values.
 
-if { [skip_avx512fp16_tests] } {
-    unsupported "target does not support AVX512fp16"
-    return -1
-}
+require !skip_avx512fp16_tests
 
 standard_testfile
 
index 6216fac60dbabec8631430e2ce71b9442a9a25db..526be1660bfd98daf86e7b31524e990788a5c408 100644 (file)
 
 # Test fp16 support in AVX512 registers.
 
-if { [skip_avx512fp16_tests] } {
-    unsupported "target does not support AVX512fp16"
-    return -1
-}
+require !skip_avx512fp16_tests
 
 standard_testfile