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.hut...@arm.com>

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

From 7ed08950f4440f8605b44449df1114edcc8ee834 Mon Sep 17 00:00:00 2001
From: Joel Hutton <joel.hut...@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

Reply via email to