mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
Rename to allow_avx512fp16_tests
This changes skip_avx512fp16_tests to invert the sense, and renames it to allow_avx512fp16_tests.
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
# Test support for _Float16 parameters and return values.
|
# Test support for _Float16 parameters and return values.
|
||||||
|
|
||||||
require !skip_avx512fp16_tests
|
require allow_avx512fp16_tests
|
||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
# Test fp16 support in AVX512 registers.
|
# Test fp16 support in AVX512 registers.
|
||||||
|
|
||||||
require !skip_avx512fp16_tests
|
require allow_avx512fp16_tests
|
||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
|
||||||
|
@ -3750,16 +3750,16 @@ gdb_caching_proc allow_avx512bf16_tests {
|
|||||||
return $allow_avx512bf16_tests
|
return $allow_avx512bf16_tests
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run a test on the target to see if it supports avx512fp16. Return 0 if so,
|
# Run a test on the target to see if it supports avx512fp16. Return 1 if so,
|
||||||
# 1 if it does not. Based on 'check_vmx_hw_available' from the GCC testsuite.
|
# 0 if it does not. Based on 'check_vmx_hw_available' from the GCC testsuite.
|
||||||
|
|
||||||
gdb_caching_proc skip_avx512fp16_tests {
|
gdb_caching_proc allow_avx512fp16_tests {
|
||||||
global srcdir subdir gdb_prompt inferior_exited_re
|
global srcdir subdir gdb_prompt inferior_exited_re
|
||||||
|
|
||||||
set me "skip_avx512fp16_tests"
|
set me "allow_avx512fp16_tests"
|
||||||
if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } {
|
if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } {
|
||||||
verbose "$me: target does not support avx512fp16, returning 1" 2
|
verbose "$me: target does not support avx512fp16, returning 0" 2
|
||||||
return 1
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Compile a test program.
|
# Compile a test program.
|
||||||
@ -3770,7 +3770,7 @@ gdb_caching_proc skip_avx512fp16_tests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if {![gdb_simple_compile $me $src executable]} {
|
if {![gdb_simple_compile $me $src executable]} {
|
||||||
return 1
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# No error message, compilation succeeded so now run it via gdb.
|
# No error message, compilation succeeded so now run it via gdb.
|
||||||
@ -3783,22 +3783,22 @@ gdb_caching_proc skip_avx512fp16_tests {
|
|||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re ".*Illegal instruction.*${gdb_prompt} $" {
|
-re ".*Illegal instruction.*${gdb_prompt} $" {
|
||||||
verbose -log "$me: avx512fp16 hardware not detected."
|
verbose -log "$me: avx512fp16 hardware not detected."
|
||||||
set skip_avx512fp16_tests 1
|
set allow_avx512fp16_tests 0
|
||||||
}
|
}
|
||||||
-re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
|
-re ".*$inferior_exited_re normally.*${gdb_prompt} $" {
|
||||||
verbose -log "$me: avx512fp16 hardware detected."
|
verbose -log "$me: avx512fp16 hardware detected."
|
||||||
set skip_avx512fp16_tests 0
|
set allow_avx512fp16_tests 1
|
||||||
}
|
}
|
||||||
default {
|
default {
|
||||||
warning "\n$me: default case taken."
|
warning "\n$me: default case taken."
|
||||||
set skip_avx512fp16_tests 1
|
set allow_avx512fp16_tests 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gdb_exit
|
gdb_exit
|
||||||
remote_file build delete $obj
|
remote_file build delete $obj
|
||||||
|
|
||||||
verbose "$me: returning $skip_avx512fp16_tests" 2
|
verbose "$me: returning $allow_avx512fp16_tests" 2
|
||||||
return $skip_avx512fp16_tests
|
return $allow_avx512fp16_tests
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run a test on the target to see if it supports btrace hardware. Return 0 if so,
|
# Run a test on the target to see if it supports btrace hardware. Return 0 if so,
|
||||||
|
Reference in New Issue
Block a user