Message ID | 1a1cf469-073e-4822-b1c6-3d6fc810585a@gjlay.de |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gjlay.de header.i=@gjlay.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=mWHZcBqu; dkim=pass header.d=gjlay.de header.i=@gjlay.de header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=RzqsCpYN; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TqWl11hxXz1yX3 for <incoming@patchwork.ozlabs.org>; Wed, 6 Mar 2024 23:21:47 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 77245385843A for <incoming@patchwork.ozlabs.org>; Wed, 6 Mar 2024 12:21:45 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.24]) by sourceware.org (Postfix) with ESMTPS id 740653858C3A for <gcc-patches@gcc.gnu.org>; Wed, 6 Mar 2024 12:21:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 740653858C3A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 740653858C3A Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=85.215.255.24 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709727685; cv=pass; b=AbmWqrPCcAIoRQf8Wl+m+iCv9B9GGTsxI62M7IE3kjxAT66RxUqeuT0wbmN6Ht++T0O30KnFZNfvLBrmw7C9IzCe0+4raIxZDh/3cLpDBvOJuZMEAoe71A4cCctOqJ6/RglTNZenSnuYtuyPG1dXvsq71ye5Pc6IOO8dR5Njn9o= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1709727685; c=relaxed/simple; bh=pQPLYWcQ2x+ep52uDicVfnNKpgFUZbWvNldvaIHVyg0=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:From: To:Subject; b=x3UjUzT+OQhjNyCkoDdUDsWNmnCgV7EVUsZv5C/rG616UBuqGpXB/7WjSzvNKV5ukFpqaBDSlznJxEJEZ/6u7cY+7cfuswHQctYuthTIzd8x6O/aMPEBae2vBwBBSc/mUGRLsi4qMZzTtFWsCxVwQ1qcOvCBMOl+ooDkobsy6eY= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1709727681; cv=none; d=strato.com; s=strato-dkim-0002; b=Qm70jWzhbRcxxIRAfMO4EY0gdklJ7yXIxoVDFzY2cdsnMM4la1jZS4fY6k0DbUv1o5 5Q3t4fmyfsbA8d8pBE47VHAPjeJnceQZBbK1A9p5AOuyDU0otj4RM3V2BmCXPR5JM6+x MMF5PDLZqncAQDmwsJc9uSgXrn6r+8h4h0xZSdxNlSqVmfW11DMj7IBoJkKwfKGgvqo7 dw5Hg1IpBmYAOmzShQh23Y2kxiecoAFJ0P/VHioT17W300CwUTToSrAdMjzZq9koEs0v vSGxONaquLigeHKPQZghODyAOZUS2xSW60urUKgdM47EY4vaHmhuuz0RK1c481zITWrk AnqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1709727681; s=strato-dkim-0002; d=strato.com; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=qskhTJPFk3wwxfq4mooxj/CzoB09bIVh5imsOMBZcpk=; b=XzDId8UCMkVryLqGEki5CtfCP5235yWWbgm7bgE/D2Jj5naA/e4YrzU9iLk9RsFI8J dnSPM93Ss4CovpHpOPgpFrVulr+blQz7G35b0P3yOPMDE02OGa3fNQFAVZhUbnUb2GB0 C2rv2msCKpmJTU55YfHqVRHgFb8ndD2ABrFqlLiB13q8wZ9O4iBt+ndbZPJqVVIF9XTv l0W40/z9MF1pjnLQtC9w5TP+Rn9qd3Ly/xcp0IMO0pZZ91zHO0DjY9SDNrouc9OtwRuu uh6MoiFzVoe2ZxNyTJfHrKEfXSsH+mgQxbGPBk1YTEnH7zyFjVPELVAQ93YlTrvv5H4K tRxw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1709727681; s=strato-dkim-0002; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=qskhTJPFk3wwxfq4mooxj/CzoB09bIVh5imsOMBZcpk=; b=mWHZcBqumROECFriRD+ajfBxIwga6sMxFTtcZJDaVinKmlFoo0b3mmBQb1xuYE6x5c qMEPDdljbWO0dtb2qd0RTG/1vS5SkcMPkKJtfjYLU+WaH6ZKGYSXeW0+X1+9KfVTf73n tYmPWKw/OBhroezoJ8gBdaw2t/2/C8ahSWMiqeI1WxAUbrMd2aKmGiaXqPiPR7s2HVnE KTsqw45h6kLtdiyuzl+5oZNWzI31rTevCl444RSDJZ8c3irs7+tJTGtzpkldK8Hx3ddR pkItTbHPuC+NlZzX+dSQWqTvB9EWz5ypXzQN0HYaAxXWCv+kD9+Bnf/WZ2Z+aXYmuacB IzHw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1709727680; s=strato-dkim-0003; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=qskhTJPFk3wwxfq4mooxj/CzoB09bIVh5imsOMBZcpk=; b=RzqsCpYNyQgMr+LD/snbUlO9+qn1KSzc8ELZmPq2Pa5DXq3C3IVMPXeV/xsvyp9y6W 3trw7ezxkFGImcEbxJCw== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkSgcSjpmy9KwoMJ/K0VA==" Received: from [192.168.2.102] by smtp.strato.de (RZmta 50.2.0 DYNA|AUTH) with ESMTPSA id Jdfd10026CLKVzf (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for <gcc-patches@gcc.gnu.org>; Wed, 6 Mar 2024 13:21:20 +0100 (CET) Message-ID: <1a1cf469-073e-4822-b1c6-3d6fc810585a@gjlay.de> Date: Wed, 6 Mar 2024 13:21:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Georg-Johann Lay <avr@gjlay.de> To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> Subject: [patch,avr.applied] Adjusted rtx costs of plus + zero_extend Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, 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.30 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+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[avr.applied] Adjusted rtx costs of plus + zero_extend
|
expand
|
diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc index 36995e05cbe..b87ae6a256d 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -12513,6 +12513,13 @@ avr_rtx_costs_1 (rtx x, machine_mode mode, int outer_code, return true; case PLUS: + if (GET_CODE (XEXP (x, 0)) == ZERO_EXTEND + && REG_P (XEXP (x, 1))) + { + *total = COSTS_N_INSNS (GET_MODE_SIZE (mode) - 1); + return true; + } + switch (mode) {