From patchwork Fri Dec 2 09:23:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 28802 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp732181wrr; Fri, 2 Dec 2022 01:24:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4pkUitGZgYqWIXjNLIfc81z2qt3JRiYLsd2FFbdRY3MGU/UESFuFCNUm/WfxsGHyDAlez4 X-Received: by 2002:a17:906:fa98:b0:7c0:a8ff:3380 with SMTP id lt24-20020a170906fa9800b007c0a8ff3380mr7628376ejb.92.1669973078837; Fri, 02 Dec 2022 01:24:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669973078; cv=none; d=google.com; s=arc-20160816; b=i+7WpjnQ9QBKRJO73AXwtHWox5FqysAmat3syngAz/YmBLNjWxz/ikLpo2gT1BLCAz 6Y+x1wIzHHDizcfLllL1APw3o6WBedGNyuuaV/8q2+Kb1lTn7ZNWrGXwF1lUm8C012cb Bbee10DkyIe6oIj/ePqVcKyZUAc2ZlI/+iaCFnrDYMEajGrM5JH7U6YdcRTEdXI88U5F eRNGLedg9v60qqDI+L+X/ygoL1YvRMMUeHilsX9+PsWyrXit809+NOWDyZAkJcPuN5kv 76hyH/ifvAjM3Apq3AYjN62sTPAgofWGLuGRUQI6J8vQf4sLBinVOAByW2ECFGzUaDdL xnpQ== 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:mime-version :user-agent:message-id:date:organization:subject:cc:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=nTpJAIGvgfKKZX/v22zSdlrVkBxtkVWW27E4/J/eejw=; b=gWJD9qM1wCPegkm+MmesdbXERe1mxE8JYjFLt56jPGJXH9QDKoEe4nEFQjc6W5fhtA DbxtZ2/pH2QiPINNGF/yZHnT4zBsuXJC8SnAx4Smg8uEzSlvDljCsVLq8Ihj5Xz5U75Y dEFs6CPQ/nr62dYd44jpzJZJrDN/r/tgM+OFtFxt/0suUIA9sUBY88hf6qvmNng4dr3G V+JHDfZ2XD8P64rWtu0LRQ+fuqXu6gigrLLbUNksAfoENc8d3xYp9UzCcnlX8FRYi9qs hcESkxRBLhBSDVyVVZFTktYyYXoUmi0SzY07+dEoGzwd9RAGBDUrG96snxPXUvL96rqL Xouw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=KpTbVbqv; 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 js20-20020a17090797d400b007c040bc168dsi5789366ejc.248.2022.12.02.01.24.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 01:24:38 -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=@gcc.gnu.org header.s=default header.b=KpTbVbqv; 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 98D6A3858C3A for ; Fri, 2 Dec 2022 09:24:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98D6A3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669973077; bh=nTpJAIGvgfKKZX/v22zSdlrVkBxtkVWW27E4/J/eejw=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=KpTbVbqvqrw/gNh3k+6ezUnmtEoTKApryg+C2opi7TyOkaoeoWbE1A6f3mJmh7wpo 0K+cpstiKAzIN7AKqquk45A1L1o/j00TCRYu2GOv0B0GvjrxaA1ZXufyxvRGJrp7yI X5BYl0Wgule0e4pr1rArykFIYaBDZFlHosqiiBZ8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from rock.gnat.com (rock.gnat.com [IPv6:2620:20:4000:0:a9e:1ff:fe9b:1d1]) by sourceware.org (Postfix) with ESMTPS id 919383858C2F for ; Fri, 2 Dec 2022 09:23:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 919383858C2F Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1DBDA116B25; Fri, 2 Dec 2022 04:23:54 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id idsLY61HXrg8; Fri, 2 Dec 2022 04:23:54 -0500 (EST) Received: from free.home (tron.gnat.com [IPv6:2620:20:4000:0:46a8:42ff:fe0e:e294]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPS id D7157116B1E; Fri, 2 Dec 2022 04:23:53 -0500 (EST) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 2B29Nj6E1291198 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 2 Dec 2022 06:23:46 -0300 To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump Subject: [PATCH] [testsuite] [riscv] skip ssa-sink-18.c Organization: Free thinker, does not speak for AdaCore Date: Fri, 02 Dec 2022 06:23:45 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP 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: Alexandre Oliva via Gcc-patches From: Alexandre Oliva Reply-To: Alexandre Oliva 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?1751093691193900216?= X-GMAIL-MSGID: =?utf-8?q?1751093691193900216?= On riscv64, despite being lp64, we choose two IV candidates as on arm, which prevents some of the expected sinking. Add an xfail for it. Regstraped on x86_64-linux-gnu, also tested with crosses to riscv64-elf and arm-eabi. Ok to install? for gcc/testsuite/ChangeLog * gcc.dg/tree-ssa/ssa-sink-18.c: xfail sink2 on riscv64. --- gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-18.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-18.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-18.c index 421c78eba50f8..9ac0fc6e4de55 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-18.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-18.c @@ -207,6 +207,9 @@ compute_on_bytes (uint8_t *in_data, int in_len, uint8_t *out_data, int out_len) from bb 31 to bb 33" When -m32, Power and X86 will sink 3 instructions, but arm ilp32 couldn't sink due to ivopts chooses two IV candidates instead of one, which is - expected, so this case is restricted to lp64 only so far. */ + expected, so this case is restricted to lp64 only so far. This different + ivopts choice affects riscv64 as well, probably because it also lacks + base+index addressing modes, so the ip[len] address computation can't be + made from the IV computation above. */ - /* { dg-final { scan-tree-dump-times "Sunk statements: 4" 1 "sink2" { target lp64 } } } */ + /* { dg-final { scan-tree-dump-times "Sunk statements: 4" 1 "sink2" { target lp64 xfail { riscv64-*-* } } } } */