From patchwork Wed Jul 24 00:50:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takayuki 'January June' Suwa X-Patchwork-Id: 1964094 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=yahoo.co.jp header.i=@yahoo.co.jp header.a=rsa-sha256 header.s=yj20110701 header.b=KyGohvsU; 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 4WTFqN6ysBz1yXp for ; Wed, 24 Jul 2024 10:52:47 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6CE8385842D for ; Wed, 24 Jul 2024 00:52:45 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from omggw0021-vm0.mail.otm.yahoo.co.jp (omggw0021-vm0.mail.otm.yahoo.co.jp [182.22.19.58]) by sourceware.org (Postfix) with ESMTPS id AF3B33858D29 for ; Wed, 24 Jul 2024 00:52:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF3B33858D29 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=yahoo.co.jp Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yahoo.co.jp ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AF3B33858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=182.22.19.58 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721782333; cv=none; b=j6odivpJOzVxG0VE5O8DXKUYX2hqtcNMRqzIv/VH0kLT+Ntj30RcbAkDjn0Kvrmb1PM28oReSr3ETadGeQEDuJGMZYEClOUs53lb1jf4EyjbjNhBRNT8+uUbEDckIqB0HndNQy1impDoHMOszVaAHUitbxQgzgvVcr3+3pKEDL0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721782333; c=relaxed/simple; bh=3/QzKKEihc7eZ5U2aoOB1OEvxrNscxlum8tjoCjzUoM=; h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To; b=obaFB+N43gdnNlEi1HPvcAYYLa0NNkVUudlJC+vcK3nExK3H4+hZ9O/69/LHRjJwrWz/2DJxSFekEtHhuFkQ59lZChMAkRc+ynHIoJ2FPlYqPGCzB2mmtGfwbd8KM3f5nuJq5jiXOtisTM62m3UmuPuwfdqhRHLlRjMf9yAUotQ= ARC-Authentication-Results: i=1; server2.sourceware.org X-YMail-OSG: 51lFpzwVM1nc7RYOwioA86hQ7nC86b_moQgxccjmd9cm3JDLGVh5fBPoAywYSXB zWTi6wNxiIixtXRoR93xKZZ3QNgbWbOxrrJTE38PvBVxpONzJMEnlHzGzw3uf46iZIbIcFbgHbxZ puMdIcLewJrDpp9ed6y7lAPLXqw0dsAzeG4OjO5UB6Nfm2i9V7srIlYK8hBZVhyCc8KWMfZmd36F Zt3OF2R0ao3VkbnTx.7No58SYZwvn4c0JcXpoioP.aEQ69T9D0jQ0wZ0JtGlJxp9Pgz_9N5MOYXv 9V18reDHX7n1b5Jk4xEryLnEapMQb.l64wAhFZf3KwzIFUgFY2iIr7HZby_4_n3HCryHJsvEqKSH .wh9ltwAy1gboVF8lmC7s57xKa9MKVJuoSXJwU4.cQ.f_DES29qes1UV6Ih0M41mJyW5gXIQSwvy mXVay_fbbCt2VC6Pi6U4DDuSTyYmiR6ZW738jfCshJpCPMnBhv8kG9sYZ5anCY7SJLLJMJ00Ck5e T8kZKIFx6VUpBrmzT4lMvBU8hjwxP2I9KPISsr0XbaoNPte1a.InNa_DyJ76d2E74uWGt2VJ._.r k0bkcPen_WQfDvKqPg8DHj2pMS.DO4XDDkfFAE_A_mUUov9YhXGOckDWvc4enm9M8scjYli9TlCr 51zEBCWr6VKW8wP7Zkd7SiQqlMiSW1iyvUpPjsYN6kzQJooPFybYbp97X1crz_rESvKt22JnaoZT p4.ti0lqS3OXxB5lm4eYjZHMC.lGCoMR40N6Xf.73Wv81tdNVEea4BJPN7B082sK3MKpPyGpIYQ5 HCHtIWo_eJDUVyS7nPzmQJbAcrdg7M.4SupCORgO2Kv6IW_NnNVEdM3L1v1glfsuqZLcq1s.ti9Q yuEKGgbZvj2zZgZ.qIYTkILXw5WseYbCe3LJyxqND3apnn1VLBUAx5VZ0y_uIVLYhEwRU5QuCFUV Lat0ePtNjJi_W_FCxRpPc8CyXTwhwiKAyua9FwVisaEdgmDi3cWh9dX2mkuorSV8cKv3jM1zUhHP cC8palNM0KE6AEMEwQOgWKFrzvo7x5v5WO7y03ZKstZQ.30NNflyWiv7roiB284zV_b6w32xUve7 m90_qumfVK_B7Z9GTRIV4Y6OSjjrrEgkBSf9ugDchIXl_dnAysGht_drWSheTKEH0GdOOO.Qc7OE 8bxzndGZ1y.gg6tb1m1V8kqyElH1gD2iGZK3W Received: from sonicgw.mail.yahoo.co.jp by sonicconh6002.mail.ssk.yahoo.co.jp with HTTP; Wed, 24 Jul 2024 00:52:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1721782258; s=yj20110701; d=yahoo.co.jp; h=References:Cc:To:Subject:From:MIME-Version:Date:Message-ID:Content-Type; bh=PZ0jMs+DZDYQ0z5D1ImYegJOpzpgzig01mG0FcK788E=; b=KyGohvsU+ZPcFPllZJHcvYco6MaBKAb9XkD6ERCg5V+mqAEn2XNYD8tfaTlAoNth axpQzN2AQJVaJE1ABLhVAJ2wv52gaF9ILnku1fNf6n3WVfSdvZyIsAXpr/fuo95Jcpb nXJFyY8r4IcUJQgNgTAhfxQlHV8vQKv3HJuymjWQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Content-Type:Message-ID:Date:MIME-Version:From:Cc:References; b=UatEGQa82VmEVEkKOv55LkxQuT6Lll4OX6jcb7usc1hYNH0r2fG6YzsSrxziWzb7 2/1PFenFLGe1I1a07y2JdOhllWolll1kfei8WLURa4jvQE9cwec4TEe0C8LDXvF1CkY hzahYy9ijvTC0HlQ6sr0pBuVt4CMyx2SS7Na0TcE=; Received: by smtphe6010.mail.ssk.ynwp.yahoo.co.jp (YJ Hermes SMTP Server) with ESMTPA ID b85b7236cd5f771a70d6cbf166146930; Wed, 24 Jul 2024 09:52:06 +0900 (JST) Message-ID: <666cbebb-f222-4f45-b796-62a8088b31be@yahoo.co.jp> Date: Wed, 24 Jul 2024 09:50:58 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Takayuki 'January June' Suwa Subject: [PATCH 2/2] xtensa: Add missing speed cost for TYPE_FARITH in TARGET_INSN_COST To: gcc-patches@gcc.gnu.org Cc: Max Filippov Content-Language: en-US References: <666cbebb-f222-4f45-b796-62a8088b31be.ref@yahoo.co.jp> X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org According to the implemented pipeline model, this cost can be assumed to be 1 clock cycle. gcc/ChangeLog: * config/xtensa/xtensa.cc (xtensa_insn_cost): Add a case statement for TYPE_FARITH. From b819dd4fb38bedd95ef5d66847a0f80b9ca8ee86 Mon Sep 17 00:00:00 2001 From: Takayuki 'January June' Suwa Date: Wed, 24 Jul 2024 06:07:06 +0900 Subject: [PATCH 2/2] xtensa: Add missing speed cost for TYPE_FARITH in TARGET_INSN_COST According to the implemented pipeline model, this cost can be assumed to be 1 clock cycle. gcc/ChangeLog: * config/xtensa/xtensa.cc (xtensa_insn_cost): Add a case statement for TYPE_FARITH. --- gcc/config/xtensa/xtensa.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index d90e78fe9c4..a7cb3cc59fc 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -4722,6 +4722,7 @@ xtensa_insn_cost (rtx_insn *insn, bool speed) case TYPE_ARITH: case TYPE_MULTI: case TYPE_NOP: + case TYPE_FARITH: case TYPE_FSTORE: return COSTS_N_INSNS (n);