* [PATCH] gdb/testsuite: make gdb.reverse/i386-avx-reverse.exp require avx
@ 2024-11-25 17:57 Guinevere Larsen
2024-12-03 16:00 ` Andrew Burgess
0 siblings, 1 reply; 3+ messages in thread
From: Guinevere Larsen @ 2024-11-25 17:57 UTC (permalink / raw)
To: gdb-patches; +Cc: Guinevere Larsen
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 commet at the top of the test, since it was a copy of a
different test.
---
gdb/testsuite/gdb.reverse/i386-avx-reverse.exp | 9 +++------
1 file 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 6d8990067f2..cc920d3a2f3 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
--
2.47.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gdb/testsuite: make gdb.reverse/i386-avx-reverse.exp require avx
2024-11-25 17:57 [PATCH] gdb/testsuite: make gdb.reverse/i386-avx-reverse.exp require avx Guinevere Larsen
@ 2024-12-03 16:00 ` Andrew Burgess
2024-12-03 18:18 ` Guinevere Larsen
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Burgess @ 2024-12-03 16:00 UTC (permalink / raw)
To: Guinevere Larsen, gdb-patches; +Cc: Guinevere Larsen
Guinevere Larsen <guinevere@redhat.com> writes:
> 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 commet at the top of the test, since it was a copy of a
typo: 'comment'
With that fixed:
Approved-By: Andrew Burgess <aburgess@redhat.com>
Thanks,
Andrew
> different test.
> ---
> gdb/testsuite/gdb.reverse/i386-avx-reverse.exp | 9 +++------
> 1 file 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 6d8990067f2..cc920d3a2f3 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
> --
> 2.47.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gdb/testsuite: make gdb.reverse/i386-avx-reverse.exp require avx
2024-12-03 16:00 ` Andrew Burgess
@ 2024-12-03 18:18 ` Guinevere Larsen
0 siblings, 0 replies; 3+ messages in thread
From: Guinevere Larsen @ 2024-12-03 18:18 UTC (permalink / raw)
To: Andrew Burgess, gdb-patches
On 12/3/24 1:00 PM, Andrew Burgess wrote:
> Guinevere Larsen <guinevere@redhat.com> writes:
>
>> 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 commet at the top of the test, since it was a copy of a
> typo: 'comment'
>
> With that fixed:
>
> Approved-By: Andrew Burgess <aburgess@redhat.com>
Fixed and pushed, thanks!
--
Cheers,
Guinevere Larsen
She/Her/Hers
>
> Thanks,
> Andrew
>
>
>> different test.
>> ---
>> gdb/testsuite/gdb.reverse/i386-avx-reverse.exp | 9 +++------
>> 1 file 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 6d8990067f2..cc920d3a2f3 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
>> --
>> 2.47.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-03 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-25 17:57 [PATCH] gdb/testsuite: make gdb.reverse/i386-avx-reverse.exp require avx Guinevere Larsen
2024-12-03 16:00 ` Andrew Burgess
2024-12-03 18:18 ` Guinevere Larsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).