From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by sourceware.org (Postfix) with ESMTPS id 2D4E93858C00 for ; Wed, 9 Nov 2022 02:57:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2D4E93858C00 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-pg1-x530.google.com with SMTP id 78so15031187pgb.13 for ; Tue, 08 Nov 2022 18:57:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vdzTDelCxbZa7EC/H4Bvg/DT89zzbEFSJIaCtt12FEI=; b=gHLSINYKoOejnumR5AZh7+UAfsaQf22nBiSuxO9echGjcg/IAwHeiTRDJL0dErL2Sb qmaAoQ4bZSs6Si4LP+R67HmX2LcdoPByBQ3QuOll8M/P0jNzloazLu/OxT1nnPFONL3U BwAT3WAoFQncbxTKcIa8UttdxDWuUZiirTFfOxbc+Op3IY1ne2DqPFUuRlWTTs40+MQl cPXKQJraKKbFo8an0MEY/OJaYOtxeJoWzIb/qkk8vBj+TvuIXe7i5DRjrQzt1x5Kzvfh lNMc37vfLu9DOodvdy2dhvl+fb1I/owxkrtrSSQiY8oGxbh7D66aBWA4TWqwe+vZ953A aBEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vdzTDelCxbZa7EC/H4Bvg/DT89zzbEFSJIaCtt12FEI=; b=vAlUmwwI00HlsKOw5mHUOeiXhnBD5EAMB1obP7S1JjQL3vprOqUfQ6BJeS3wUAAs2C dMuYzt1/DrNL3R7bxTA6ZTuMqw9gvUSY0E2Qh836+HcfdCZ11gbHrVe8m0TeRz3ddOUC K3s+PZ/d93Qn6KQlDYcgJLTpfith9iVIWfvuuXVZkHr9uJ3opntO8CqgFwkkz5mOjpLK +hcD74c5Or442JrNV9lMkkiRwnAgLLxEsJyDm72XDDAEd9zoFYqQieWAyHkD4CcOIX+P 0PYSeX8EID0AYUUZF8lGKAIZfZGTBtEgJSDYJUWZW3JeeJkDV5fP8cchlZS2DkdtKpKH wxfg== X-Gm-Message-State: ACrzQf2+YvAfqk73hG6pI+b6paMjaGeyxYSr83Dc7+LGtDpH2CF8kQjU S5vR6AoWCbqw55m6Ir3LG0Y= X-Google-Smtp-Source: AMsMyM4CZB+845Cyxe9NLl78HCsuvLgpScfpzSxDJryWzynUHCYWKCHzb36LMaUZrZRYOQYLLQY1YA== X-Received: by 2002:a05:6a00:1414:b0:562:69d4:f9f3 with SMTP id l20-20020a056a00141400b0056269d4f9f3mr1127075pfu.5.1667962647884; Tue, 08 Nov 2022 18:57:27 -0800 (PST) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id bf20-20020a17090b0b1400b0020ad53b5883sm38039pjb.14.2022.11.08.18.57.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 18:57:27 -0800 (PST) Message-ID: <84c1e229-dcfe-380a-ba6e-d4621aba0589@gmail.com> Date: Tue, 8 Nov 2022 19:57:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] RISC-V: costs: handle BSWAP Content-Language: en-US To: Philipp Tomsich , gcc-patches@gcc.gnu.org Cc: Palmer Dabbelt , Kito Cheng , Christoph Muellner , Vineet Gupta , Jeff Law References: <20221108195415.2701208-1-philipp.tomsich@vrull.eu> From: Jeff Law In-Reply-To: <20221108195415.2701208-1-philipp.tomsich@vrull.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,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 List-Id: On 11/8/22 12:54, Philipp Tomsich wrote: > The BSWAP operation is not handled in rtx_costs. Add it. > > With Zbb, BSWAP for XLEN is a single instruction; for smaller modes, > it will expand into two. > > gcc/ChangeLog: > > * config/riscv/riscv.c (rtx_costs): Add BSWAP. OK. Jeff