From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by sourceware.org (Postfix) with ESMTPS id 4D1373858D35 for ; Sun, 19 Nov 2023 17:48:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D1373858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4D1373858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::234 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700416104; cv=none; b=aBQyljQyFFrHYprDx6yFqLnwZlRpSmkFXaTIXYzcTcr/u7JPCf7+Laepq+dHcZH5aMwHbdJ1Sln9ZYdV+6sxgCBuByncWNSVTpeKnkM9M3Zq61MTm/Q2W9JuWZU7LKg9J0F3W95zEeI9d2kkfUgDH31C+BiajhwqNuTZIwArO3w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700416104; c=relaxed/simple; bh=ZIqVrC8cJzr+WTOxue9G9Ultw7rOeR44Cq7bjJNH7HE=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=ZY794tbJmmDXHec0kgpfzHdG4d/rfttytDZ6zsAs9f+3tAIKB/AErJcdQjhZSeyDqRRxpIwDAOuxElcW8TquWvfF0QPnvK8oZU7E43DjcjKF597rZe2PRTPogAM6FMnb2DAAWaOquIIcmeJZBfHm/aEUYcY0rTzB5CS0flrV7zM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3b2df2fb611so2750908b6e.0 for ; Sun, 19 Nov 2023 09:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700416102; x=1701020902; darn=gcc.gnu.org; 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=ImpHTrBi1oYihotiBs6JUC12+vR8Sh2ITXIhgIbsUYY=; b=UxiJdMQX8AQExFCx1Dj9mrLPwPJNhzO534F0se2gwGb/sFh1SP1wHR6bAPkMHoowrD ooWqQJckL+iU32JdHfuGdfwNrLgKmJBU4K1NIV9OuqMEmkBj06EW0hQAazbynsWSt25B 57Lq3F6q5FKE1wMw4aRdclcj/qB80wR/y+ZGyE0gGcWtfc11yYc0fhSZFV9Wxnd+nTe2 HNT0nUob/SZr2NnYUmLsr+5jlZzS8M0HDZla+61GDr09HKf2i/Mi0wW/i4tac+sUWXab lG/U0+ZXFHqbpBcTLiPK2KMgdUgremKiKxE38O6Jc5hMHu12GSVuQEQD33AS0zgk9DIv qwaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700416102; x=1701020902; 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=ImpHTrBi1oYihotiBs6JUC12+vR8Sh2ITXIhgIbsUYY=; b=ChSIpMRbUc3sRWPi9jeI+SaaoZwB94Z9/AHUUVksF9SKlYOojPMWDAO2amudOCXWLL vIbp/H083abwRqJMvzj7Os05D5LOb7QOBc4GLniF4QHdjUpPwU2UyUzt1gpfjJLvWSLM aqwtNL+hIy5BNxf9JD8U3CbBqwDftD/TBIEsLJEFY11JFkh6w7Is8ajptwOzSaY87Eh4 En3z9wsuMW2K6IRKmWhqkCh/z6l5AFlodETPZ8WiCOQ8IovuIw1nrHEq1HyN11XqSTIr EMBpF7f5das42Ir9z1aRsqwt7qxoDuv4AtGdalCN1BYut6OR5heQBQJa8kXlgYLHzDWu KNTQ== X-Gm-Message-State: AOJu0YywVw/NMu/ffjWfG1dB85b6WfIujvx1khx44n07n9KGTX3cKzBv Gg0QpR95I11QtM74S3+1yCY= X-Google-Smtp-Source: AGHT+IH60KE0oU4qaYXxn+Tp6jSNsqHlRChBxjlYJjZqXgUhJHDLZtr4seeZZ5dG8XrjJGJjVdVmHA== X-Received: by 2002:a05:6870:36d6:b0:1ea:8b10:247a with SMTP id u22-20020a05687036d600b001ea8b10247amr6513745oak.42.1700416102586; Sun, 19 Nov 2023 09:48:22 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id i2-20020a056870a68200b001ef38a85f9bsm1045234oam.16.2023.11.19.09.48.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Nov 2023 09:48:22 -0800 (PST) Message-ID: Date: Sun, 19 Nov 2023 10:48:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 20/44] RISC-V: Also accept constants for T-Head cond-move comparison operands Content-Language: en-US To: "Maciej W. Rozycki" , gcc-patches@gcc.gnu.org Cc: Andrew Waterman , Jim Wilson , Kito Cheng , Palmer Dabbelt References: From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 11/18/23 22:39, Maciej W. Rozycki wrote: > There is no need for the requirement for conditional-move comparison > operands to be stricter for T-Head targets than for other targets and > limit them to registers only. Constants will be reloaded if required > just as with branches or other-target conditional-move operations and > there is no extra overhead specific to the T-Head case. This enables > more opportunities for a branchless sequence to be produced. > > gcc/ > * config/riscv/riscv.cc (riscv_expand_conditional_move): Also > accept constants for T-Head comparison operands. OK jeff