]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: make gdb.reverse/i386-avx-reverse.exp require avx
authorGuinevere Larsen <guinevere@redhat.com>
Mon, 25 Nov 2024 17:34:31 +0000 (14:34 -0300)
committerGuinevere Larsen <guinevere@redhat.com>
Tue, 3 Dec 2024 18:16:40 +0000 (15:16 -0300)
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>
gdb/testsuite/gdb.reverse/i386-avx-reverse.exp

index 6d8990067f2251f61cdae69e18c81cb78834cee3..cc920d3a2f36c00724d3b450b835968a8bb00d09 100644 (file)
 # 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