From patchwork Wed Nov 22 03:17:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Andrew Pinski (QUIC)" X-Patchwork-Id: 168077 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1070200vqb; Tue, 21 Nov 2023 19:18:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKMYhJFp2jizTs3sHlvhE8SrzgZ1Tt2R4U8cukA3go1L7nnn1cFkncBrDTOUKy5MVM+S+6 X-Received: by 2002:a05:6358:510:b0:16d:fcfd:bb88 with SMTP id t16-20020a056358051000b0016dfcfdbb88mr702916rwj.6.1700623111232; Tue, 21 Nov 2023 19:18:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700623111; cv=pass; d=google.com; s=arc-20160816; b=Vye6EbNC9rzzdB6ztmoyDL5UpeDKeXD/FwAavemYYQxAWcenDgA0tQkH2mpvEP7dLs Z8uIBxHpRu7Fb+WghSkN3yfP6RaDRWeS3fn15LLDO6Lxu9jZF+uR2gvp1za0drc2VhQD nbTLv3IdppG/hAq4dDWEDFWRibInyu0JiBpuyth27oC9iSuas1JIc5ZDxm2CO3unGqyx sLab32SMoGZqrj9lPcPpO3exI1LIaMWONcmKAmBggt6FnvuPfT7FbBJUtORcGVyV+AnL Ad562w82Xq/C8/f25+0Gu0t6AuW6u+MIUHS16+F+G1ej5A2vTjRfqzavIfdx+NVwmJJW 1eYg== 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:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=NTNdMSWn0SUHgj69oIdBFh0PnQVdhVwvp7+d0qezSkg=; fh=1K1DOh+cffNMNafMqyZ5FgX8pN0ilzqoJlUZGXzx8NI=; b=rPuNTd7h/bDbFYAAA0y//V9lwLt36ARJzB0e0b2df3yne0J+W19F1cTsWgqqPE1TPR tPENhQGSw8Z8zgAIQl7PpHRzPUte8dYCWmxYkQ5lB8uy8jFa6JiAfS1YdUMoZy+tsmJJ JpphACZQg8ICeLWqNt14TR2CsuVCqsIyNSxZZkHNH0zH4ix7JXINTYSsdBU5yl/4efYE xUt+CXa1Po+8+av10/uHChotT6/x6evS9Q6DpWwPtI9z/obZtZOKqmHQfQ5NAH4wH5Bl slx5QdhpzU6a86qBLbCoqP7P/lj6yDRobOlqPu2Mh71eH5oN0W6MzLb4K9EyvICJhmZ3 im1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HeL9Z9kr; 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id fe14-20020a05622a4d4e00b00423752fac7csi1698396qtb.34.2023.11.21.19.18.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 19:18:31 -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=HeL9Z9kr; 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 F273D3858410 for ; Wed, 22 Nov 2023 03:18:30 +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 1BC0C3858D33 for ; Wed, 22 Nov 2023 03:18:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1BC0C3858D33 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 1BC0C3858D33 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=1700623088; cv=none; b=TpaWaXLDptqdSkduzr/0rjY3F+5DPUL1m3/KEvgFwDpD2oa3ZvOiQH4UHHvRxcxTTzjfyu3OGx/aUVs+2WLSarovlkDo/skN3qGxZmtK74hnYqlaLg+DPJToIUAzWz+s/68ejjKyJedq/tMP38V4IPWg3IWXwsxpuk2jHeD/TNs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700623088; c=relaxed/simple; bh=gBdzArSYUt52q3XNz4AXCMitK/uURf5RWkgjBoaifW0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=NB0V+wnUvexavexXNb8wcLbssQnw4HTQOjoYLVWyynv4k1FAp3wGIoLm17hBOaW2EI/sZMp8fDdVRwL/CCr3SXq7HmzunFFFnK9PBfxDP0c3Z+yqVcRL73oNrInnX8+jhGJumOLrN2EI1XSnYNZqKKu1ZlMv93p9sGInzYrNuaY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AM2fPOW013014 for ; Wed, 22 Nov 2023 03:18:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=NTNdMSWn0SUHgj69oIdBFh0PnQVdhVwvp7+d0qezSkg=; b=HeL9Z9kruukPQWvK3iALnesDqT0n9ndAa2fbbKhi9XECLVedj2Sp9g+TgV5jhH78TG51 N7QNauzI1HLyir27XNNxqJlw5TQMOXO1NLlbC5RCD/08TbDgLjabzLo7oE4/GE78hpLs 8G7IhfwFHH4Rm0nh1eARngi9tW9p/v/U1qkCwCU3a6UyHR6XTJKysgNHLBWofP9clbc2 3zQl8OOMllxtGW4lmj5ASzF/MB9X2DZU9T+DcS/ouTYja7SErMkRGStg1ljnMHPlCLWu 7V+uNedOxh2Y17o1aIeF3tQOCtcJeNSG+86PAJFw8I4tY/o7Lc/ep/3l7S3/GbbU+lnB uQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ugk6x3gwh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 22 Nov 2023 03:18:06 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AM3I5ET012631 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 22 Nov 2023 03:18:05 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, 21 Nov 2023 19:18:05 -0800 From: Andrew Pinski To: , Subject: [PATCH] Fix gcc.target/aarch64/movk.c testcase after IPA-VRP improvement for return values Date: Tue, 21 Nov 2023 19:17:56 -0800 Message-ID: <20231122031756.3403606-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: nalasex01a.na.qualcomm.com (10.47.209.196) 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: 7AtjpJSzsdsVIsrjfIARRY6rtJ6XBxr8 X-Proofpoint-ORIG-GUID: 7AtjpJSzsdsVIsrjfIARRY6rtJ6XBxr8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-21_16,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxscore=0 impostorscore=0 spamscore=0 clxscore=1015 adultscore=0 malwarescore=0 bulkscore=0 phishscore=0 priorityscore=1501 mlxlogscore=443 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311220021 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, 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: 1783232516678373179 X-GMAIL-MSGID: 1783232579423732619 This fixes the testcase. gcc/testsuite/ChangeLog: * gcc.target/aarch64/movk.c: Add noipa on dummy_number_generator and remove -fno-inline option. Signed-off-by: Andrew Pinski --- gcc/testsuite/gcc.target/aarch64/movk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/aarch64/movk.c b/gcc/testsuite/gcc.target/aarch64/movk.c index e6e4e3a8961..1fa11540c6c 100644 --- a/gcc/testsuite/gcc.target/aarch64/movk.c +++ b/gcc/testsuite/gcc.target/aarch64/movk.c @@ -1,8 +1,11 @@ /* { dg-do run } */ -/* { dg-options "-O2 --save-temps -fno-inline" } */ +/* { dg-options "-O2 --save-temps" } */ extern void abort (void); +/* Note GCC can optimize this to -346565474575675 even without inlining so + mark it for noipa. */ +[[gnu::noipa]] long long int dummy_number_generator () {