From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id AED3D3858D35 for ; Sun, 19 Nov 2023 17:50:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AED3D3858D35 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 AED3D3858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::32f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700416220; cv=none; b=HGjKKEqZfP5kbi0gs22S/SNSYWum8wzxRDI60ZQy8ffZJcamdcO+HuWjDxx1bgv8NN9dy/1yWDJQrqwL4t7u4A7FVVMJ6c6fjThkZjH4N72RcBhrBg5Ar72ksYfIXgo6YBdTbK+ewcSkF1WEqQ6LqCKS2G+KVNrTHQmJACtTc2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700416220; c=relaxed/simple; bh=VoCyB16NyjGRFVd8+H+sqN5iOF0RtI0z2RUvAn8caDg=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=fQ7+uuSAsb/a2GCO65AejZmal7Zb3FUVWWk6QI9s9aGmMZvJwgMysfzP3zxXARdTJiWfDNDlFTKm0yNO05w4X1mMz4MoQk+nc47jXk/y1x2ihHpiTNHUmb6cTw9jIwMjne5/OuS2ENbaEQNwdTktKDJxxaIMgCfSK6CzTS4hXTg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6d2efe8c43eso2315718a34.0 for ; Sun, 19 Nov 2023 09:50:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700416219; x=1701021019; 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=1/iNU2k1hfyDXtA/32K6wdMk4BOh8Y0E2QN0ubQ/ep4=; b=PEZ3cGWHTm+16you27Vlk8L4Mj06pvomxTe9LTUSeEZ4D2IeUGocZUWxlIg6QR7L1S geORteA8JIrqgpCIrTCIU2JpumHq7KvwRDsUr3NNWv9NIgSp2WY+aiwkLfiZVkyq4Nwo 2OeS40uXBlqdmycwL3k+gKH2yv3N+BJn3tE/aZ6RxsDAwLhUKVNCc+PAO8c2GN8Slk3u Esl42xImhkZ5XDx1Fcpo6whK3qlJ0Q1wQLrvA8Ij72bf31hacC2zEwx2rmBLDL9NWBHy SMwctR0y4Hs31VQtciSnpLNhSRyFe2geH0UVGP9CpOBvyY1OmB8SxcHlY1P5ohlV7ZtT PgEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700416219; x=1701021019; 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=1/iNU2k1hfyDXtA/32K6wdMk4BOh8Y0E2QN0ubQ/ep4=; b=s1V3xdzIiLkEXi8xR6+41sfzHdujSEYTWkRVDdTpWSvzUs2biT/1PguSbgbNdpY/JB A54McOjXjhSnAuIcrou/XDvhofVbl5Iv1Pzw9x8RVFQkn2kSLzWMerZb+mxTESazWJth cWG/T+QWMQ6etiRuPlrpFJv8AZjrn5F9xriUXffGooHTT1rJFVDnyr4fHM53SQmshjhX vSg4+BlZd2fERGzrE1OPzHOea6nO+xZ0xkYSDlGTZyx+fLaX3HTnSGZbpthHQ502Cej9 iShO+Iq68i6FvGP4Lo+Q8ThwhPtvRk6+jAyU+XxCFJePBk6dQqgHUxY4af2L+pH5RmZ3 eVYQ== X-Gm-Message-State: AOJu0YxmCU//vZYqImqjkxy0bEvKHtqBlzPwe6Rf993jfNYljdFVgOp1 7bU8o31eHGj4btoNs1KP2cU= X-Google-Smtp-Source: AGHT+IH3tEFjMsbwu5nK3GBO/z9QEDN9I024EqkQCVgkeKTFs2/a6kUxAn+IfHe9rgBnvtxBA6G1lw== X-Received: by 2002:a05:6830:22e6:b0:6d3:1f0b:3fc7 with SMTP id t6-20020a05683022e600b006d31f0b3fc7mr2125397otc.7.1700416218939; Sun, 19 Nov 2023 09:50:18 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id u7-20020a9d4d87000000b006c619f17669sm923477otk.74.2023.11.19.09.50.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Nov 2023 09:50:18 -0800 (PST) Message-ID: Date: Sun, 19 Nov 2023 10:50:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 21/44] RISC-V: Also accept constants for T-Head cond-move data input 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=-1.6 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,URIBL_BLACK autolearn=no 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 data input > operands to be stricter for T-Head targets than for short forward branch > targets and limit them to registers only. They are keyed according to > the `sfb_alu_operand' predicate, which lets certain constants through. > Such constants are already forced into a register for the `cons' operand > in the analogous short forward branch case and we can force them for the > `alt' operand and T-Head as well. 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 data input operands. OK. Jeff