From patchwork Thu Jun 15 17:56:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 108669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp815745vqr; Thu, 15 Jun 2023 10:58:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58Ji7foZZZZL0eiLDL8DQHKlxS0QIt9ZqdY21tDZprpiU/7BGw3dSkeKQYK5YQ9ySi9xje X-Received: by 2002:a17:907:6290:b0:982:2ece:2a32 with SMTP id nd16-20020a170907629000b009822ece2a32mr9676565ejc.26.1686851909267; Thu, 15 Jun 2023 10:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686851909; cv=none; d=google.com; s=arc-20160816; b=DE6g+SDE3Ij0oVHwn6+a5bmW8BLDfJj3OMC3Z4dgj0dDDBOBHzzyRzIHuPK8PfOezX NjRwFMlYbJv6QvKOK/XYcq4p41JpjwdOHegjFm4McKWHHxOrBUduZEv5+62kzfr60j2D umzekko2HoPm5/mtcuSKgRFryklPkDd2vXgiIBB0Ay+CcOAt0T+mtUnOxviGT+g0IuoH t7ScZ3faZjCc0/Osyp62UnBK7Nxmz1NVneTFtbizHdYPowsCE8ynVsTWoM/l4NSXrzaP zYEjEHA4TjeiswK5PAwpRTpCowDh2YuaKGPSuGHOzFn6qAo2aOAHJKpPDhel1waIkwNE paqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=mvpRdZodbA6Jd3GXNGzPNKtKJXwwYzj6tCnGecqeP24=; b=yB93Pmd3QYP3tJEC235ADBV07EtBHMa+xNqprzE2320vVto4CePUAiH7d9N5CmDTrE C8ElDAdJReo7UHVOunWMQDHMoiN4ZMyIxL+LN7zqrXEWIdEtnsnPCxEmsX01Ao+2Q5Rg vjlcOqIsxVcTq4zn5fGmiYMhAfxPSG50zKLHWXj1QPp3IGMLy/YlKcXiG9zEn+1Ckpla c9hzroJk2xt2HhN0cnxX7pgaRyUNGAPeBVg6vdthGFRPlvq2fhLsvLbEJgEJv1lHvSSh V41IxnHaxoztBb7XHKsOVrj6anTNJxoUX7s+8IATV39o1xOOJHOfZqe32SMYJYMIzAf5 oDeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=jBY9tFsZ; 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=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id v5-20020a170906488500b0098236380a75si4304800ejq.953.2023.06.15.10.58.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 10:58:29 -0700 (PDT) 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=@gcc.gnu.org header.s=default header.b=jBY9tFsZ; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E4458385B53E for ; Thu, 15 Jun 2023 17:58:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4458385B53E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686851907; bh=mvpRdZodbA6Jd3GXNGzPNKtKJXwwYzj6tCnGecqeP24=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=jBY9tFsZiy8ZfQv2YVonOyoliB4ZE5sHLbyKDWqhoqZ6tobtmHsf034Bb5u7WPB4B Mai3q3tItUYX0WFGnSwsbd3zvxD+bt4MIJKiahQa1lAlkZK6+Ie+0M/kTiB3m4BrCm mAYbX5/3f5f6MKDnhgoRAkOedNnyzpjjCTms7R3o= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by sourceware.org (Postfix) with ESMTPS id 819AD38555B9 for ; Thu, 15 Jun 2023 17:57:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 819AD38555B9 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35FB71aR000333 for ; Thu, 15 Jun 2023 10:57:35 -0700 Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r81g39seb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 15 Jun 2023 10:57:35 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 15 Jun 2023 10:57:33 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 15 Jun 2023 10:57:33 -0700 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.187]) by maili.marvell.com (Postfix) with ESMTP id 2BB143F7043; Thu, 15 Jun 2023 10:57:33 -0700 (PDT) To: CC: Andrew Pinski Subject: [PATCH] Add another testcase for PR 110266 Date: Thu, 15 Jun 2023 10:56:25 -0700 Message-ID: <20230615175625.3544115-1-apinski@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Proofpoint-GUID: qp_wW8_4-nTQoup6XO7eFo2BQAK_vNXT X-Proofpoint-ORIG-GUID: qp_wW8_4-nTQoup6XO7eFo2BQAK_vNXT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-15_14,2023-06-15_01,2023-05-22_02 X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Andrew Pinski via Gcc-patches From: Andrew Pinski Reply-To: Andrew Pinski Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768792427514699254?= X-GMAIL-MSGID: =?utf-8?q?1768792427514699254?= Since the combining of sin/cos into cexpi is depedent on the target, this adds another testcase which had failed (earlier in evpr rather than vrp2) that will fail on all targets rather than ones which have sincos or C99 math functions. Committed as obvious after a quick test. gcc/testsuite/ChangeLog: PR tree-optimization/110266 * gcc.c-torture/compile/pr110266.c: New test. --- gcc/testsuite/gcc.c-torture/compile/pr110266.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr110266.c diff --git a/gcc/testsuite/gcc.c-torture/compile/pr110266.c b/gcc/testsuite/gcc.c-torture/compile/pr110266.c new file mode 100644 index 00000000000..92af0c51efc --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr110266.c @@ -0,0 +1,9 @@ +double PsyBufferUpdate(int n) +{ + if (n == 4) + { + _Complex double t = __builtin_cexpi(n); + return __real t * __imag t; + } + return 0; +}