From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2063) id 39BF63857B81; Tue, 25 Oct 2022 05:20:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39BF63857B81 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666675214; bh=oimPUElJtNwd31NNYzL8C+yc9FShND7T7f0D3OWrJ64=; h=From:To:Subject:Date:From; b=HvFAMkG3+iv8iFMSd89uQnMlMc039eTJfJhfIc+psuoN0HxNO8kTxeYo/C0pB/6Sc EP3ZXw94873epFoqMqGyRCYZxbeF1VYvcj5VXnbrfJ9PouHFMNvy0kZnK8SkxXmOsb LCdOmtYFG+gycK/zXt7xka7b6D5XSlrLMIEd1TXc= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Kewen Lin To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3475] rs6000/test: Support vect_long_long effective target X-Act-Checkin: gcc X-Git-Author: Kewen Lin X-Git-Refname: refs/heads/master X-Git-Oldrev: 958014f369c8817184af110f8eb2c433a712fd0a X-Git-Newrev: 321f89e58510dd5df1b3dbe323344b987a7b11c6 Message-Id: <20221025052014.39BF63857B81@sourceware.org> Date: Tue, 25 Oct 2022 05:20:14 +0000 (GMT) List-Id: https://gcc.gnu.org/g:321f89e58510dd5df1b3dbe323344b987a7b11c6 commit r13-3475-g321f89e58510dd5df1b3dbe323344b987a7b11c6 Author: Kewen Lin Date: Tue Oct 25 00:18:45 2022 -0500 rs6000/test: Support vect_long_long effective target Currently effective target vect_long_long doesn't have power specific check, I think it's an oversight. This is to add the support which checks for has_arch_pwr8, since we set rs6000_vector_unit[V2DImode] as: (TARGET_P8_VECTOR) ? VECTOR_P8_VECTOR : VECTOR_NONE; it means its full support starts from ISA 2.07. Although ISA 2.06 has some instructions like lxvd2x and stxvd2x etc., it's used for testing, checking for ISA 2.07 is more sensitive. gcc/testsuite/ChangeLog: * lib/target-supports.exp (check_effective_target_vect_long_long): Add support for powerpc*-*-*. Diff: --- gcc/testsuite/lib/target-supports.exp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7824a441bca..ccbbee847f7 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -7075,7 +7075,10 @@ proc check_effective_target_vect_long_long { } { || ([istarget mips*-*-*] && [et-is-effective-target mips_msa]) || ([istarget s390*-*-*] - && [check_effective_target_s390_vx]) }}] + && [check_effective_target_s390_vx]) + || ([istarget powerpc*-*-*] + && ![istarget powerpc-*-linux*paired*] + && [check_effective_target_has_arch_pwr8]) }}] }