[2/2] Add i?86-*-* and x86_64-*-* to vect_logical_reduc

Message ID 20231117000934.2301995-2-hongtao.liu@intel.com
State Unresolved
Headers
Series [1/2] Support reduc_{plus, xor, and, ior}_scal_m for vector integer mode. |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

liuhongt Nov. 17, 2023, 12:09 a.m. UTC
  x86 backend support reduc_{and,ior,xor>_scal_m for vector integer
modes.

Ok for trunk?

gcc/testsuite/ChangeLog:

	* lib/target-supports.exp (vect_logical_reduc): Add i?86-*-*
	and x86_64-*-*.
---
 gcc/testsuite/lib/target-supports.exp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index b6a2e4fd096..30dd39508f8 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9257,7 +9257,8 @@  proc check_effective_target_vect_call_roundf { } {
 proc check_effective_target_vect_logical_reduc { } {
     return [expr { [check_effective_target_aarch64_sve]
 	           || [istarget amdgcn-*-*]
-		   || [check_effective_target_riscv_v] }]
+		   || [check_effective_target_riscv_v]
+		   || [istarget i?86-*-*] || [istarget x86_64-*-*]}]
 }
 
 # Return 1 if the target supports the fold_extract_last optab.