From patchwork Tue Feb 13 21:45:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Andrew Pinski (QUIC)" X-Patchwork-Id: 200668 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp825356dyb; Tue, 13 Feb 2024 13:46:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU9tsamGOUKbAkxSPD+YflJd59J0i/dGsVBnmr5IEemn7gWtQPBeQickXDBA0LclYYVHicBgCsYoU/z9dHDLFIfaux57g== X-Google-Smtp-Source: AGHT+IG2HIgCnEL0ORU0pYVxtbPi+/x5q2wuDNGfMoOA0ZxsVEXZlFxdtr6CwJ/teipqE02OVP/X X-Received: by 2002:a25:910:0:b0:dcd:97da:926e with SMTP id 16-20020a250910000000b00dcd97da926emr692752ybj.13.1707860783636; Tue, 13 Feb 2024 13:46:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707860783; cv=pass; d=google.com; s=arc-20160816; b=zKZ3dqMgnKwSvSixNznxvKGIWrqM0N4E2cEqrwWSeVF3oIsrvwQAUk6bxkVj1xfyK4 7MOdtmuK5Lx2nnQJIpvhi0RgL4QQ/UvMnSB6IGRxO6upCle/SKIuogZg4AlDOwzDh2VT SUar/T0FYx+VG6XLhoGWFZmGLUTDHCGvHdbLuw4RYNluep9a0IzPP/6zEk0T/HPQmoIV 2G3uj/+YJx5MapwhSVCOplD4VjBfjmp89rVbdL2f0xgF1HCx/agTZ24C1Y5jRAy0yKBh ChZ69qdpkK9npzicphJiddaVWdUP2cNJML3GUEGkFT46BhvUY9DiOfb6CYHp0QdJFvYX ebNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=ayf2wwqGJk1UKFQpSLs7xWgYoxwjrKW/2RBHWWHu9mc=; fh=HfBLzkYBOqTEGGHZegiF7IhvInPdD+r/JxbqWHzi3zw=; b=BdnQYu2p2TVusJRvBQ5McUJBgITLoYKbhA/QfLjDIVTLlhhMIfDj8TNdFiyw2V6/Cr 95Lr1GBG0Khu7bZrydfrSu2l0ObAWG0OsQd+taETevCUZR1wnQXtBKWgJ5rmlNR/Uu+S RrFnyRNcBbV0kpN0mDGs99YJKFUVvRQbIhlIbV5ug73pKi+mUeXICuHTZDcPscmS0via nkIRdUn+ufxpbtifk20yyNUEr5dOsaW6m4R9FNRVI0sO7G7DVQqPWagd6dHsoyQ3RCEW YGeZSG93OPUD5HvPRzM7r8Tg5KO5JpOHEuo8eDJfE3HozL1d7+uHIYKO1EqQ6Cm+giSN 0+uA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=G8nTB3ke; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCUWDYbBXp6OfMNksK5LlB2W6acFU15idfsu1Zsfy5vWVLnSCMSgKemixxTaXMLameEPZXJSGu6OASslOocWUTG+RJnPGg== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id a14-20020a05620a066e00b00785be48c25fsi8969302qkh.217.2024.02.13.13.46.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:46:23 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=G8nTB3ke; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 596BD3857BA2 for ; Tue, 13 Feb 2024 21:46:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by sourceware.org (Postfix) with ESMTPS id 47BF63857B97 for ; Tue, 13 Feb 2024 21:45:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 47BF63857B97 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=quicinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 47BF63857B97 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707860745; cv=none; b=bmtgcpV0hXQbbyMPa9nbMt+r+pKe0y8X1yRZ7821JH8mSpZY0b94UweegXz7Lku5kvCAnpSVo/OJQOpHDukQUfIfoRZYJ+GgkQOPkV2TYbOoBmdddFCTbjVaYeCxlwpcUoajR4kG8oBGuvxvnK87Zs8VON/B9MnOcMLrvHzMg10= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707860745; c=relaxed/simple; bh=9bbcmPn4osaLD/qEWD3V8gl4mMhocDxc/HyUud+wrhw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=flP7Q4ro7ikLYcXcCuf9Aur8Qyf+iE5GIQB/oWwMu04eETAnPTD5MpuAewOcpGaWFLP87SR4Yjv0LcXZDLw5TVHDOFTK1kjiV5XYw1NSiXVxVtPGUvQX1VlUyV1qAH2dE0rwtTaikilPU+J0thZqeuvMyP7FOlK7Mf0BxHLVA+M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41DJTeiB015463 for ; Tue, 13 Feb 2024 21:45:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=ayf2wwq GJk1UKFQpSLs7xWgYoxwjrKW/2RBHWWHu9mc=; b=G8nTB3keVGJX+yAkTj2akKi vBVdC2LYFng3vSInIKvh7xMJtTn1dZChP512C66HYTcmuZEfnLT0wB+KkpVjIpPT Ie8F4/6my1rEcjF0tiLLLDimk/BJ5SSrhyVN1RaOJQ2hh1PsIceOyC64YMxu7xfT SiLVvZCRqqqjFf09v1ayyEoNiV+5NH9ACd0JgFHgOxzIHAq4D7qP0QUouUlYmQrm h07PO8MC1KW9ZUBWqw5L9/gjee+QkRn38ZJwHSn7CAZuRlV9oLEUiNYvFlBvXELq 3g9E50587kAS7lJpUI97WY/BlqItafDpb3vw6lQE10FeWXnI0dKkau/WvTaMGZw= = Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w7wfyac3m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 13 Feb 2024 21:45:43 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41DLjgSf015266 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 13 Feb 2024 21:45:42 GMT Received: from hu-apinski-lv.qualcomm.com (10.49.16.6) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 13 Feb 2024 13:45:42 -0800 From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH] vect/testsuite: Fix vect-simd-clone-1[02].c when dg-do default is compile [PR113899] Date: Tue, 13 Feb 2024 13:45:30 -0800 Message-ID: <20240213214530.4177961-1-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Ilw2F0m8OEjj556IAA9bjgrKF5ZBgHHd X-Proofpoint-ORIG-GUID: Ilw2F0m8OEjj556IAA9bjgrKF5ZBgHHd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-13_14,2024-02-12_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=573 priorityscore=1501 clxscore=1015 mlxscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 malwarescore=0 impostorscore=0 spamscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402130170 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790821828796820283 X-GMAIL-MSGID: 1790821828796820283 The vect testsuite will chose the dg-do default based on if it knows the running target does not support running with the vector extensions enabled (for easy of testing). The problem is when it is decided the default is compile instead of run, dg-additional-sources does not work. So the fix is to set dg-do on these two testcases to run explicitly. OK? Tested on x86_64 with a hack to check_vect_support_and_set_flags to set the dg-default to compile. gcc/testsuite/ChangeLog: PR testsuite/113899 * gcc.dg/vect/vect-simd-clone-10.c: Add `dg-do run` * gcc.dg/vect/vect-simd-clone-12.c: Likewise. Signed-off-by: Andrew Pinski --- gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c | 2 ++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c index ed63ff59cc0..009c849b7e7 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c +++ b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c @@ -1,3 +1,5 @@ +/* Since this uses dg-additional-sources, need to specify `dg-do run` instead of the default. */ +/* { dg-do run } */ /* { dg-require-effective-target vect_simd_clones } */ /* { dg-additional-options "-fopenmp-simd" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c index c44471e35bc..4699a3f3c80 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c +++ b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c @@ -1,3 +1,5 @@ +/* Since this uses dg-additional-sources, need to specify `dg-do run` instead of the default. */ +/* { dg-do run } */ /* { dg-require-effective-target vect_simd_clones } */ /* { dg-additional-options "-fopenmp-simd" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */