diff mbox series

[vect,testsuite] Update vect_char_add target selector to use its own cache

Message ID f34efdae-2abb-51d7-74a0-1dbfdcce28a7@arm.com
State New
Headers show
Series [vect,testsuite] Update vect_char_add target selector to use its own cache | expand

Commit Message

Joel Hutton Nov. 26, 2019, 5:53 p.m. UTC
Hi all,

This patch updates the vect_char_add target selector to use its own 
cache instead of the vect_int cache.

This was causing a situation where bb-slp-40.c would fail on sparc when 
run after other tests that use the vect_int target selector, but pass 
when run on its own.

This fixes Bug 92391

Tested on x86 and sparc64.

2019-11-26  Joel Hutton  <Joel.Hutton@arm.com>

         * lib/target-supports.exp: Update vect_char_add target selector 
to use its own cache.

Comments

Richard Sandiford Nov. 26, 2019, 10:12 p.m. UTC | #1
Joel Hutton <Joel.Hutton@arm.com> writes:
> Hi all,
>
> This patch updates the vect_char_add target selector to use its own 
> cache instead of the vect_int cache.
>
> This was causing a situation where bb-slp-40.c would fail on sparc when 
> run after other tests that use the vect_int target selector, but pass 
> when run on its own.
>
> This fixes Bug 92391
>
> Tested on x86 and sparc64.
>
> 2019-11-26  Joel Hutton  <Joel.Hutton@arm.com>
>
>          * lib/target-supports.exp: Update vect_char_add target selector 
> to use its own cache.

Thanks, applied as r278738.

Richard

>
> From 7ed08950f4440f8605b44449df1114edcc8ee834 Mon Sep 17 00:00:00 2001
> From: Joel Hutton <Joel.Hutton@arm.com>
> Date: Tue, 26 Nov 2019 17:09:12 +0000
> Subject: [PATCH] Update vect_char_add target selector to use its own cache
>
> ---
>  gcc/testsuite/lib/target-supports.exp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
> index 5fe1e83492cae97adf82ed53e12d8f5f7ea5a951..a4418a3151677a2a45275463b9828db7e7755b28 100644
> --- a/gcc/testsuite/lib/target-supports.exp
> +++ b/gcc/testsuite/lib/target-supports.exp
> @@ -5753,7 +5753,7 @@ proc check_effective_target_vect_bswap { } {
>  # one vector length.
>  
>  proc check_effective_target_vect_char_add { } {
> -    return [check_cached_effective_target_indexed vect_int {
> +    return [check_cached_effective_target_indexed vect_char_add {
>        expr {
>           [istarget i?86-*-*] || [istarget x86_64-*-*]
>           || ([istarget powerpc*-*-*]
diff mbox series

Patch

From 7ed08950f4440f8605b44449df1114edcc8ee834 Mon Sep 17 00:00:00 2001
From: Joel Hutton <Joel.Hutton@arm.com>
Date: Tue, 26 Nov 2019 17:09:12 +0000
Subject: [PATCH] Update vect_char_add target selector to use its own cache

---
 gcc/testsuite/lib/target-supports.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 5fe1e83492cae97adf82ed53e12d8f5f7ea5a951..a4418a3151677a2a45275463b9828db7e7755b28 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -5753,7 +5753,7 @@  proc check_effective_target_vect_bswap { } {
 # one vector length.
 
 proc check_effective_target_vect_char_add { } {
-    return [check_cached_effective_target_indexed vect_int {
+    return [check_cached_effective_target_indexed vect_char_add {
       expr {
          [istarget i?86-*-*] || [istarget x86_64-*-*]
          || ([istarget powerpc*-*-*]
-- 
2.17.1