From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id A0D6C3858D33 for ; Tue, 14 Mar 2023 18:05:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A0D6C3858D33 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-x52f.google.com with SMTP id y19so9411337pgk.5 for ; Tue, 14 Mar 2023 11:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678817123; 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=GJmtpkBHO6Jlh9VtPAelt60rvmIIxtFNCqz73XusOPw=; b=P9kcg1vL7vzTLkpcxvKbkIIhIcyLQSzwrjuGADL0VzPJIsPyO2K/7P2f4fNjqkm9/8 q3Nn9xmJ2dXRWSHzMRkMIpr1e6j4mXkX3qRmdOng3VR/FadnVtPTrkYjIhWZbZtvKzRT cZttZR6QRKbSONwsT6g2YX7iMXL3PhQtqfJZOdUIt9/k10TNuPM911U9YEHoCvVynCHE ZBVsf5Rtj8I7xenRD/KOF1yHyqOs44WzqzACT5M8SC0NaFuAce+/3l6rUnfdO4soKOgQ n+7GVDR9iqh6IiwYqfie38zi+mHjbMR1VL5MB41ZUHN74D7zj4J5Oh3RZ01DZdyy6CTR tPBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678817123; 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=GJmtpkBHO6Jlh9VtPAelt60rvmIIxtFNCqz73XusOPw=; b=32+f9Onpbvmlwdx5U6IihxF7jDQkoGLnsDFt0u2DtAC6gPJtUrPAwCzdN6Kzpsnsfm zirsHO+Ej9D7AUuR/8W02rWfjNV2DjIXPBmJEs2dyDmbqxB6MbWZywbCKKe5QsePv3qC MvSiLhUqKq3xS4+A09/jUaCyBoFiRgMJ+T2EWnhR0kUFwll+Qn4PbkEQRWJMLfQy06BX zfrlGoXNOig+QPBw7WOt3Vfd3QQihXBUZSh2Lt0LgAaIQOxfU4iX/JrFW0DPTFXw1WEo lIzmmdUC30mZMoHUI8AZp1dHRGQywrQvmUoxn2T30r7VyNDFwE6mkWnioBCk3GZc/QIJ UpDA== X-Gm-Message-State: AO0yUKVR8CcCqq05MgrEnaD/Ax1Sf7/1VyI5hRVyr6ixLajarW8++arj 40djI0QoyhLjTCrVFKMptyw= X-Google-Smtp-Source: AK7set8u3VCnS2NuCxzFH16EvQTmhv+5kyZmkcXuremeIVmRKcgHAiGq2cLdo6cD4phUfFBTOakbmw== X-Received: by 2002:a62:65c1:0:b0:60b:e13:a10b with SMTP id z184-20020a6265c1000000b0060b0e13a10bmr32281421pfb.3.1678817122865; Tue, 14 Mar 2023 11:05:22 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id b14-20020aa7870e000000b005810c4286d6sm1936784pfo.0.2023.03.14.11.05.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Mar 2023 11:05:22 -0700 (PDT) Message-ID: Date: Tue, 14 Mar 2023 12:05:21 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] RISC-V: Refine reduction RA constraint according to RVV ISA Content-Language: en-US To: juzhe.zhong@rivai.ai, gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com References: <20230313090540.335536-1-juzhe.zhong@rivai.ai> From: Jeff Law In-Reply-To: <20230313090540.335536-1-juzhe.zhong@rivai.ai> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 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 3/13/23 03:05, juzhe.zhong@rivai.ai wrote: > From: Ju-Zhe Zhong > > According to RVV ISA: > 14. Vector Reduction Operations > > "The destination vector register can overlap the source operands, including the mask register." > > gcc/ChangeLog: > > * config/riscv/vector.md: Refine RA constraint. This feels like it ought to wait for gcc-14 as well. One question though, why even bother with the matching constraint at all in these patterns? ISTM it doesn't really accomplish anything. Removing it allows a single alternative to handle all the possibilities. Jeff