From patchwork Mon Apr 24 22:30:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 87193 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3040894vqo; Mon, 24 Apr 2023 15:33:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZYTL6+ovLZRLsozntqbE8CaH0QWzJBgLrD8YCqd2Hqt2ufV7RiDoyNSKzLkXboT1SZ3Yp4 X-Received: by 2002:a17:907:3a49:b0:953:64f6:a5d5 with SMTP id fc9-20020a1709073a4900b0095364f6a5d5mr10002695ejc.60.1682375584766; Mon, 24 Apr 2023 15:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682375584; cv=none; d=google.com; s=arc-20160816; b=0RsUW8TALbn3h8Bfk16JCHJDB3nYu1xUcNyUTMFfTcTnrUAvF6xQQD3BKVgJdXRGWg bX6Gqh5qzh8ZrJC75c4tpdz+diQQev/6DAQ7tA2MZ1LXTG9DOseMOVHoGPGQjhT4VaOx pfPP94l1wWr3e4+EMM6xoHZJ7X3f4UTazEd1P5lhC47+uJitQolOTVFvy+gLQJkSth36 CjRD75ZQBEUrhvjHiz6uGFobrBVeIczUGm8Kz/A8w9wS2nHPyhOE9e/L2zFjQkdNCJ0p 9+nIrXXs7I0izD5AJYT8cM54HmtAU2YxfW+cormDE8IqwMGtzyLRYGcpMNoqLB81R8cD Dnzg== 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:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=p8BBuZvPLD6w/R6X8pveTcXjMeBeEYvNaJVGS/3DHvw=; b=jtSUf1TwbtqCzOvPUGW/TWQpcUrpU1AW+Dtykf2A6otYca8L1aqk7G5p9jx47udbo1 WRGmLdSB0h6sp5szC3Mo5VmnrpoQhTju31dH8BgbQit61mAhyyse331jFlL6tqXB/+O0 dqBXWZDzjzUXR8UThCZj7JcECGbXAT8gQt1fFIPZzbADk3LfErdxbaN4nUnmVUIPKQLr Kjdbwywe7qgLw/DElWluu9C6HVEgmeDyNw4p3pDUpO+uZEaiVmg3yTzP6M/dr9RSO5FA 0RygcnwTklb58rjY/DFFuPsrqbJ295+8yod7Cu6fvWveeP9R/arm9TX1mpJR3CLh+LQe FwOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=WMo6jANv; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id v23-20020a1709063bd700b009535dd5880csi8925374ejf.630.2023.04.24.15.33.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 15:33:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=WMo6jANv; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 AD3FF3858412 for ; Mon, 24 Apr 2023 22:33:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD3FF3858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682375583; bh=p8BBuZvPLD6w/R6X8pveTcXjMeBeEYvNaJVGS/3DHvw=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=WMo6jANv8uX4PgyXgKHtdsUlWRteT3fiFU3v75wPPMndd+SduLhEJ3/0E6xTH6cYV Fh9FFhhF7E2kwNiR3eYTm2ku/rXxAiiXEYyxsMcuP/fN7tTRJYzAjf2aq7ZKxY+n2a F5556BLea8btidFPtveBwf4dTmbV9Zu7zlBXC+Qc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 66090385800A; Mon, 24 Apr 2023 22:31:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 66090385800A To: gcc-patches@gcc.gnu.org Cc: pinskia@gcc.gnu.org, rguenth@gcc.gnu.org, Sam James Subject: [PATCH v2] testsuite: Add testcase for sparc ICE [PR105573] Date: Mon, 24 Apr 2023 23:30:55 +0100 Message-Id: <20230424223055.3450183-1-sam@gentoo.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <87edo86hgw.fsf@gentoo.org> References: <87edo86hgw.fsf@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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: Sam James via Gcc-patches From: Sam James Reply-To: Sam James 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?1763815657411775201?= X-GMAIL-MSGID: =?utf-8?q?1764098660776585368?= r11-10018-g33914983cf3734c2f8079963ba49fcc117499ef3 fixed PR105312 and added a test case for target/arm but the duplicate PR105573 has a test case for target/sparc that was uncommitted until now. 2023-04-21 Sam James PR tree-optimization/105312 PR target/105573 * gcc/testsuite/gcc.target/sparc/pr105573.c: New test. Signed-off-by: Sam James --- gcc/testsuite/gcc.target/sparc/pr105573.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gcc/testsuite/gcc.target/sparc/pr105573.c diff --git a/gcc/testsuite/gcc.target/sparc/pr105573.c b/gcc/testsuite/gcc.target/sparc/pr105573.c new file mode 100644 index 00000000000..14043a5fdad --- /dev/null +++ b/gcc/testsuite/gcc.target/sparc/pr105573.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -mvis3" } */ + +int *UINT_sign_args, UINT_sign_steps; +int *UINT_sign_ip1; + +void UINT_sign() { + char *op1 = (char*) UINT_sign_args; + int os1 = UINT_sign_steps, i; + for (; i; i++, op1 += os1) { + unsigned in = *(unsigned *)UINT_sign_ip1; + int *out = (int*) op1; + *out = in > 0; + } +}