aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuinevere Larsen <guinevere@redhat.com>2024-11-25 14:34:31 -0300
committerGuinevere Larsen <guinevere@redhat.com>2024-12-03 15:16:40 -0300
commitc3b15d468c106ed70954e863c595f857657bd8f2 (patch)
treec2c62f54add2f063ae63ea90e3b3f282fc3b9936
parentab3cca26874c63c097873a75f86e7aeb4a49278e (diff)
downloadbinutils-c3b15d468c106ed70954e863c595f857657bd8f2.zip
binutils-c3b15d468c106ed70954e863c595f857657bd8f2.tar.gz
binutils-c3b15d468c106ed70954e863c595f857657bd8f2.tar.bz2
gdb/testsuite: make gdb.reverse/i386-avx-reverse.exp require avx
The test gdb.reverse/i386-avx-reverse.exp was assuming that if the CPU was like x86, it would have AVX instructions because I didn't know how to check for AVX instruction support explicitly. This commit updates that to use the pre-existing TCL proc have_avx. Also update the comment at the top of the test, since it was a copy of a different test. Approved-By: Andrew Burgess <aburgess@redhat.com>
-rw-r--r--gdb/testsuite/gdb.reverse/i386-avx-reverse.exp9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.reverse/i386-avx-reverse.exp b/gdb/testsuite/gdb.reverse/i386-avx-reverse.exp
index 6d89900..cc920d3 100644
--- a/gdb/testsuite/gdb.reverse/i386-avx-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/i386-avx-reverse.exp
@@ -16,15 +16,12 @@
# This file is part of the gdb testsuite.
#
-# This test tests some i386 general instructions for reverse execution.
+# This test tests i386 AVX instructions for reverse execution. This
+# is supposed to test all supported instructions eventually.
#
require supports_reverse
-
-if {![istarget "*86*-*linux*"]} {
- verbose "Skipping i386 reverse tests."
- return
-}
+require have_avx
# TODO: this is the case because I used xmm15 all over the test.
# Some parts of the test require xmm15 to validate some code paths, but