From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 821CA3858D33 for ; Thu, 23 Nov 2023 22:16:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 821CA3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 821CA3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::631 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700777822; cv=none; b=lcFklSy4+/Bme74hOnFteHGEFEXnJ0Ze8g9iKv5DQlGQ/VpXLhPDDorM8grKpXm7R0dB10LACCDNQrevS3S8l5shvCIq54CfVSgc6vVMJnvoqDb+ibA67B5QE5TIB9vdk86KiaJ3OqD2U9wRj51ly9X7B6tp0ia5wRV1WUUIjcE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700777822; c=relaxed/simple; bh=cHLw2zB/VchGhK6gpAn/R3ph8oGCMY3f9v+9M5DUAFA=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=WQ7kTzJuSVBrnsozcm9gDERDj+u9/hZNx0bVUGvi8sQ4LKWFr177B3pajKwPwimCC8dTv2w1PHG0t5xWxlF8qo5Hu91KXqZt/VZjU1NQWuW+G9hEXeh2ErgM3/f4BNXHR9TQrdwp1mZUMQREXYwp62LfqSF1vpvkwOOJ9PPoTmY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9fa2714e828so172408766b.1 for ; Thu, 23 Nov 2023 14:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1700777818; x=1701382618; darn=gcc.gnu.org; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KtXRQwl8/Qfvtqt4HeRQEdGABAXP84tXIRGXah2n/E0=; b=TgOZKCdAftU+WfEpF/Fs+hMKKg7ZqAJ7pnpCYTehwnjjlzsL7D17r2c00AetOEQTFZ RY1MWLFWWK3jWHh1ELzNlLlUk6OVVVmce6deqKebcBYG+kQ3kW/C80o74xLIu/Ect+uV yl3L6+GqJgvSJsCNzFPYEUgzrKWqIXlzNpUrItL8m6GACrWPjyG/Bf2XgXrbOk/Funb6 7Qa71dlPV0ubqO8RX2ZsBcbeygIXqUM0WU/H9R6dNk3KSSUbcmpQ4vzKgO1DncjQLzoY e/xuXtTHZ9eLpUMCV8Qe4wUfvYseQ/iZgAqlIwcW0gW2ZtmVvbD2kS/t6mvn1/2q0J/l G+XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700777818; x=1701382618; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KtXRQwl8/Qfvtqt4HeRQEdGABAXP84tXIRGXah2n/E0=; b=Jo4srM+J8lpmL6j8zQjihPoTYxHs472t3FrUKvPrCbEQ7u1CkspFGiWly/SopieKdq K4eq1aJrqT48ZZWY6fsdqDBU2lWw778R7fn7zt32BEgGdVx3Q0qFfj09upGE6YH8AIbr LiST1r6CnqKJrQDe28hOD+wcyXH7s1YwDaWk+qI56Hkqyh6ZGrwuxBo6PNpdxsVX4FH2 SPq/BOrLNhCCzXM+qJ5RiqfrMLdfya+sAEkbUm0Lnkfj3fDBfDjSdnSNtW0xfhIZ1vIm bXwXhu1Us8+acZRLQbhg5Eyr0NmXOyzLUq7Y0gMGqo0OA4t4JbarwEipUZMBBXeTZPhY 6WPA== X-Gm-Message-State: AOJu0YzYRZ5oSochd1Ggnm16KFD8TYScCulkjts8IOohwXpORFpGcsgz vSu77MYY8jnf2+DOKQqD7LXRKw== X-Google-Smtp-Source: AGHT+IF3kPGktzu783riXmneozGzNz8DkVcHi6zH7IWtDrAfmiJVfOqXln4rRIyMY5rvbx9P+hD/tg== X-Received: by 2002:a17:906:d3:b0:9c4:54c6:8030 with SMTP id 19-20020a17090600d300b009c454c68030mr512835eji.6.1700777817708; Thu, 23 Nov 2023 14:16:57 -0800 (PST) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id mf8-20020a170906cb8800b009e776cc92dcsm1258470ejb.181.2023.11.23.14.16.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2023 14:16:57 -0800 (PST) Date: Thu, 23 Nov 2023 22:16:53 +0000 (GMT) From: "Maciej W. Rozycki" To: Jeff Law cc: gcc-patches@gcc.gnu.org, Andrew Waterman , Jim Wilson , Kito Cheng , Palmer Dabbelt Subject: Re: [PATCH 26/44] RISC-V: Add `movMODEcc' implementation for generic targets In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: On Sun, 19 Nov 2023, Jeff Law wrote: > OK. Just curious are y'all seeing significant interest in this case from > customers or is this more a case of rounding out the implementation to cover > all potential possibilities? As in the cover letter: we have a case where the pipeline seems to imply high enough a branch penalty for branchless alternatives to be worth considering even where built from more than just a couple instructions. We yet have to fully evaluate it for our case and it may be that these sequences are costlier than branches after all or that the boundary lies somewhere in between (or that we end up with Zicond also available in the CPU RTL). However we realised that combined with `-mbranch-cost=' it might be a useful tool for performance evaluation for other people as well. This, combined with the branch costing issues observed earlier and attempted to address with 09/44, is also why I chose, conservatively, to add the `-mmovcc' option to control this feature: we may choose to flip it on by default for some tuning architectures or even globally at one point. Especially as it seems like the `addMODEcc' part could be profitable for some architectures already. Maciej