Message ID | 293c6900-a6b8-9bcb-9752-5f41554e80c5@ventanamicro.com |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2489194wrr; Tue, 22 Nov 2022 15:21:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5yW0qsx62GMlA+4wGJ4nExHUtIvbaYaJEdaomek80Sdi9SU4F2T5+zCMA4NNwLQDAq4iUi X-Received: by 2002:aa7:d482:0:b0:461:8503:2b46 with SMTP id b2-20020aa7d482000000b0046185032b46mr23390951edr.202.1669159292035; Tue, 22 Nov 2022 15:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669159292; cv=none; d=google.com; s=arc-20160816; b=j7Vt9VMj9UX0Vo30zwpA8Tml+PqEHRb2npF1Dl3kBSt0Z1q8tlk6JwtjE0ztQJRssW lMYtJPxuYJ4BE9mVQj/xZOnrpkd7twQ+/qpgqszmppolcGx1faem4+fGHKuTem+5NAGO K5pctzzz2V1784C0XU7yvvFusOkEE9ypWukbT3ro/3t1GJhkLQtB88FqY9hNOGAITEj0 czGUW7iJ3Lk9PPNM+U5aJFc1hyJVZSMKpkTjfqGc2p3tTb6CkafZkQCMU0J0NuHWx4d+ KQ2i6umvWPJBtSBYEfnpvLbMwjoPU1v/XhgMnzbXDhaQVNlQzMp7yXwrhdwGbVFLP/4X OPtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:from:to :content-language:user-agent:mime-version:date:message-id :dkim-signature:dmarc-filter:delivered-to; bh=WeLQ/rhBvYIDu2b2q58UFmGTY+g70kAwzJKXQL+H0IM=; b=YIzL41nCgRbfspFzCemXMkyL5ShymKXhbbb8bsAczYp04hAjQ4gDp3RztT1XfAo2tL nf89+f/afBwak9GEUuq5JU3fweQgYQppnUVvZNxggGwIexKYmQnQdOit2qpASbxjw/OB 06Es8dAwZ23GXYhg/fnuI0V5vu5zGQN6SQ12VU9Mu/lgQALNwVKEqlF8iCKGwRG34ExX Vlzua7qdxiRDsZ5Wk0Qpl5GlIF9hYcBTu8XaW3PLHr0Yq+WgH0Fsws6qvNqSuLt7jOl2 LhWSZa8ofMl/qQe56qt1mwgOWKQqSJ8gvIAh7ImhoD1Ji33KfcByMHqL9+PNQ9ywRpkP 74LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=dWVllPxv; 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" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id h18-20020a05640250d200b004542c9947c1si13544546edb.217.2022.11.22.15.21.31 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 15:21:32 -0800 (PST) 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=@ventanamicro.com header.s=google header.b=dWVllPxv; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2EC693853D7D for <ouuuleilei@gmail.com>; Tue, 22 Nov 2022 23:21:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by sourceware.org (Postfix) with ESMTPS id CFAB43854555 for <gcc-patches@gcc.gnu.org>; Tue, 22 Nov 2022 23:21:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CFAB43854555 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-pj1-x102b.google.com with SMTP id o5-20020a17090a678500b00218cd5a21c9so308522pjj.4 for <gcc-patches@gcc.gnu.org>; Tue, 22 Nov 2022 15:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=WeLQ/rhBvYIDu2b2q58UFmGTY+g70kAwzJKXQL+H0IM=; b=dWVllPxvvqhycKq/ONg3aNbhPIVyOqywRYwgONmSStaUQd0Uh5VtZ5Rgzx5P+S4RTf lQGHH/v9gqx+zVJdYUBg0jHlDu5zdSP21jwfjTpeu37A/vmiNm0KzlHDa9l6oS1Udx11 daG+QZH5iWrfwRxJkK6uZrppo3He/9vxqNn9nKZiH3ZAcDBB63pSjU5S+gZpKEcjWe2T l0HdSgmWT0Q60yrQoa7vSl5rluAY4RZN3Xj55tFjIkXjUyY7wu326MIsObJZrTuGORAc jyp0fUvby8Mhi5J4BYOA7Ae1/7stPEvktmW3GsbGMcZpjaXl8yg7FxzBYuWvEa2VB8aQ 9LTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WeLQ/rhBvYIDu2b2q58UFmGTY+g70kAwzJKXQL+H0IM=; b=vlnAZGyLhf2PyHb3xXR9iqMYKUUxuX3zPOmvHNiX+EgfZRoguLoqmIcVKBcQutpVTF OTFCIxewc9ubPJCZPWKT02ddAe/7Z0Qwq41+jHth7tuaUTlhZSKfT1MLal8r8Jux0IUa UepCHz5Cm+NE2xeL0vAAD0obydRhCUS1niVM1D7Zlgjvb4wZpimt/OpAdR+JuUSANPm3 2Ayrysa8sSNYws8IUWk/vp990ggf7W6o55D6ykM14ZXv9/Kv8S+a9793ioE4QiD+dnbT 4z9gYeTNVBtkw2lgxKuQZHaImkpS3v4scEgVu+PqZe+oBoj0BEc54B83gal6MYONw/Hb ZgTA== X-Gm-Message-State: ANoB5plSUpn1nbxOerH+NkSuJmk3Ck4q8EaTf/jdGwtAJ76Xj++Nvp7d +je85+AQo5FpYL09B5zIpybBEUOSTpq8RA== X-Received: by 2002:a17:90a:fd87:b0:218:d86a:375b with SMTP id cx7-20020a17090afd8700b00218d86a375bmr3004736pjb.57.1669159260637; Tue, 22 Nov 2022 15:21:00 -0800 (PST) Received: from ?IPV6:2601:681:8600:13d0::99f? ([2601:681:8600:13d0::99f]) by smtp.gmail.com with ESMTPSA id h11-20020aa796cb000000b0056c3a0dc65fsm11193521pfq.71.2022.11.22.15.20.59 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Nov 2022 15:21:00 -0800 (PST) Content-Type: multipart/mixed; boundary="------------wwlo3DYTAA9srxOPN8aNdIuf" Message-ID: <293c6900-a6b8-9bcb-9752-5f41554e80c5@ventanamicro.com> Date: Tue, 22 Nov 2022 16:20:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Content-Language: en-US To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> From: Jeff Law <jlaw@ventanamicro.com> Subject: [committed][RISC-V] Fix recent rvv/base/spill testcase failures X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750240374050936921?= X-GMAIL-MSGID: =?utf-8?q?1750240374050936921?= |
Series |
[committed,RISC-V] Fix recent rvv/base/spill testcase failures
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Jeff Law
Nov. 22, 2022, 11:20 p.m. UTC
As Jaiwei noted, many (all?) of the rvv/base/spill tests started failing after the introduction of shrink-wrapping. The core issue is we're expecting the frame to have a constant size, but it doesn't. So when using the to_constant method we abort. The safest thing to do is to set no shrink-wrapping components when the frame size is not fixed. We might be able to do better later -- iff we know the offset to the GPRs/FPRs is fixed and fits into the appropriate number of bits. Bootstrapped and regression tested (C-only) on riscv64-linux-gnu. As expected, it fixes a bucketload of failures in rvv/base/spill-*.c. Installed on the trunk, Jeff commit ca73d4c80ea06087d9dd22594e5670bb15e21066 Author: Jeff Law <jeffreyalaw@gmail.com> Date: Tue Nov 22 18:12:45 2022 -0500 Fix recent rvv/base/spill testcase failures he core issue is we're expecting the frame to have a constant size, but it doesn't. So when using the to_constant method we abort. The safest thing to do is to set no shrink-wrapping components when the frame size is not fixed. We might be able to do better later -- iff we know the offset to the GPRs/FPRs is fixed and fits into the appropriate number of bits. Bootstrapped and regression tested (C-only) on riscv64-linux-gnu. As expected, it fixes a bucketload of failures in rvv/base/spill-*.c. gcc/ * config/riscv/riscv.cc (riscv_get_separate_components): Do not do shrink-wrapping for a frame with a variable size.
Comments
LGTM, thanks :) On Wed, Nov 23, 2022 at 7:21 AM Jeff Law <jlaw@ventanamicro.com> wrote: > > As Jaiwei noted, many (all?) of the rvv/base/spill tests started failing > after the introduction of shrink-wrapping. > > > The core issue is we're expecting the frame to have a constant size, but > it doesn't. So when using the to_constant method we abort. > > > The safest thing to do is to set no shrink-wrapping components when the > frame size is not fixed. We might be able to do better later -- iff we > know the offset to the GPRs/FPRs is fixed and fits into the appropriate > number of bits. > > > Bootstrapped and regression tested (C-only) on riscv64-linux-gnu. As > expected, it fixes a bucketload of failures in rvv/base/spill-*.c. > > > Installed on the trunk, > > Jeff
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 7ec4ce97e6c..7bfc0e9f595 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -5340,7 +5340,8 @@ riscv_get_separate_components (void) bitmap_clear (components); if (riscv_use_save_libcall (&cfun->machine->frame) - || cfun->machine->interrupt_handler_p) + || cfun->machine->interrupt_handler_p + || !cfun->machine->frame.gp_sp_offset.is_constant ()) return components; offset = cfun->machine->frame.gp_sp_offset.to_constant ();