From e4c935cb98add40d0a6350a798a8258951dfc9d9 Mon Sep 17 00:00:00 2001 From: Joel Hutton Date: Tue, 26 Nov 2019 22:11:39 +0000 Subject: [PATCH] Update vect_char_add target selector to use its own cache 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. 2019-11-26 Joel Hutton gcc/testsuite/ PR testsuite/92391 * lib/target-supports.exp (check_effective_target_vect_char_add): Use a separate cache entry from vect_int. From-SVN: r278738 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/target-supports.exp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 32ba76b21f7..a8926cc8809 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-11-26 Joel Hutton + + PR testsuite/92391 + * lib/target-supports.exp (check_effective_target_vect_char_add): + Use a separate cache entry from vect_int. + 2019-11-26 Jakub Jelinek PR c++/92648 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 5fe1e83492c..a4418a31516 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.30.2