From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by sourceware.org (Postfix) with ESMTPS id C6A493858C2F for ; Wed, 19 Oct 2022 11:32:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C6A493858C2F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-345528ceb87so164659207b3.11 for ; Wed, 19 Oct 2022 04:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WWq4dsOQZbuPDH42nmy/Z9N8+Oo0dOxgdoiRQrDjb5M=; b=Xsw5uBbPidk6lSsAvyFrfpO9Mf5qrVoclHRpxtRB6/4MxxNabk/yU30QxOamSUuNpE b4girNr5WG4MXHz/G1soe7fjHku2zb/A8Cvux2OexUUerZehoox+07kOp14pvXYjEW6p s69BqfBW4BQCWsRwXWYytMTaj5ioNIyBKJAw/ItFfx5WYKSsJox0Gf1N9IMwdMx+PMPV qQzDKbNxwNkAgLoxvDAZTeBiDKpF7NfrmMxa2zLA0NGmWiCFLhpeGw0OcP5aX0M4wh8Y j73YlwDBiHDwPY4cBRewSQg8fqIWRo/MkxApuhIS7hrGAL9d4F13OxUdkMFNAHDSozr9 5E7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WWq4dsOQZbuPDH42nmy/Z9N8+Oo0dOxgdoiRQrDjb5M=; b=LsHStcMLaU5DnZ4zPQ2rvolB5PerCLhrYrcSWBzahGC0jQk9u6XiLpNWhyzQB72hDR yAJVXjxmjGPo1b44PFl5a+D/Ptspl9Y+UosIg3me//fZAp9sXjdkFt20kNBduwHmW0cb BVNze5tucBlYOCx+/+msmFALCHl7IkJQT3ze2YDdr9Hy0t5rTG2AdjtuYJaOL85eX7CY 7vI0126npqbUI25FumJwrjb1tQoI+K+I/UE8RKY80LtXFZABsrYOOylsA0Hf7XHauu9J Z49DFfpobS6wWw/sOE6AsgCYjXwyyXqs4XvwjFlpF95fiBcaxUZ008cWWvHQCIORlKkP 2C8w== X-Gm-Message-State: ACrzQf2dpOpgUKs8AgegZ2bcVW4MKpDCI5VnqZOa3bZwdRETK9DUAeP2 VsdGQCQpGTpXNJ8II4TW16vRGnNJmg7lNtGOKZM= X-Google-Smtp-Source: AMsMyM4gw4Ch21TB2u4BBA7tAEJyqcXGsapdMqA7ZgkJga7rLDDaTiHJncihShw+REOG8HOXpV04padygzsCH7J4L2c= X-Received: by 2002:a0d:cd83:0:b0:35c:67cb:f002 with SMTP id p125-20020a0dcd83000000b0035c67cbf002mr6271287ywd.470.1666179123209; Wed, 19 Oct 2022 04:32:03 -0700 (PDT) MIME-Version: 1.0 References: <7e3fe210-6dbc-fc29-dbb8-b951e89cf7e9@yahoo.co.jp> <87f124f0-8a10-6c3b-6b12-cabf855e2e4b@yahoo.co.jp> <3296b387-083a-40cf-1bb5-40269e804f52@yahoo.co.jp> <3054719f-6688-211c-da07-93c0fbf7c038@yahoo.co.jp> In-Reply-To: <3054719f-6688-211c-da07-93c0fbf7c038@yahoo.co.jp> From: Max Filippov Date: Wed, 19 Oct 2022 04:31:51 -0700 Message-ID: Subject: Re: [PATCH v3] xtensa: Prepare the transition from Reload to LRA To: "Takayuki 'January June' Suwa" Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Oct 19, 2022 at 1:16 AM Takayuki 'January June' Suwa wrote: > This patch provides the first step in the transition from Reload to LRA > in Xtensa. > > gcc/ChangeLog: > > * config/xtensa/xtensa-proto.h > (xtensa_split1_finished_p, xtensa_split_DI_reg_imm): New prototypes. > * config/xtensa/xtensa.cc > (xtensa_split1_finished_p, xtensa_split_DI_reg_imm, xtensa_lra_p): > New functions. > (TARGET_LRA_P): Replace the dummy hook with xtensa_lra_p. > (xt_true_regnum): Rework. > * gcc/config/xtensa/xtensa.h (CALL_REALLY_USED_REGISTERS): > Switch from CALL_USED_REGISTERS, and revise the comment. > * gcc/config/xtensa/constraints.md (Y): > Use !xtensa_split1_finished_p() instead of can_create_pseudo_p(). > * gcc/config/xtensa/predicates.md (move_operand): Ditto. > * gcc/config/xtensa/xtensa.md: Add two new split patterns: > - splits DImode immediate load into two SImode ones > - puts out-of-constraint SImode constants into the constant pool > * gcc/config/xtensa/xtensa.opt (-mlra): New target-specific option > for testing purpose. > --- > gcc/config/xtensa/constraints.md | 2 +- > gcc/config/xtensa/predicates.md | 2 +- > gcc/config/xtensa/xtensa-protos.h | 2 + > gcc/config/xtensa/xtensa.cc | 69 ++++++++++++++++++++++++++----- > gcc/config/xtensa/xtensa.h | 8 ++-- > gcc/config/xtensa/xtensa.md | 36 ++++++++++++---- > gcc/config/xtensa/xtensa.opt | 4 ++ > 7 files changed, 99 insertions(+), 24 deletions(-) Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master after fixing the changelog. -- Thanks. -- Max