From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id 6DF813858C50 for ; Sat, 29 Apr 2023 17:46:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6DF813858C50 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-x529.google.com with SMTP id 41be03b00d2f7-51b0f9d7d70so942657a12.1 for ; Sat, 29 Apr 2023 10:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682790399; x=1685382399; 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=7imMa97gqa1ib6jLh214LksvP7kiDWC4+FtXsAfk4b8=; b=DWNQpSvF66yNyIeBpGc8U2Sq7lnyDnmo9VbDVSwP2Mkp7hNzKaqVohvDRqLZf7wIf1 BIkU5wU/nepOQjXC/1SuXs8Rm0a+rqKN1ikQzv5iAQliRuWCB63bYSGyp6ktHsJPJYJF DTqbPot/HsCU3C5ZCAE8SuSc0EW9uebrpm6nF6lZeXxpbNiTGtAq180oig+oIulfAiPB 0JlwshOfcAWLkD8aLl1a8NZQN075QAHkJi3YMop2GqyF7VbEGrgY4tUv8L+3TkgUG4J3 31GUz0JCDQbi1NRbBwQEEtmVPMc9Uqh09AOCr5P5T+3CvZL90AhxkrE+rKwQBYAGNChk Nocg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682790399; x=1685382399; 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=7imMa97gqa1ib6jLh214LksvP7kiDWC4+FtXsAfk4b8=; b=cewavD9gI0WC+m8E7ukmi+G1anShO31jwRTxQ67IAMlabYml56bu6oYViEJrZ7vwm9 Je5KWzDx3CpxZ+g8di/PUMHXVVMw9lFLwEPTAuLobCyrlLs7Gu/4wzDwOLx/Sa96VSJF fhsmGIBOH6Fo0f4y3uPIiPjlHohCHroIsWxAYWk2Z9m4RQ6g2M8cJHwydcUFxvQvOyGP i46RuD0cpDUoe4HmywLhQWgP/c62pSKo6Y+eKTyvLeQaeoSdE0s018duRArdnM+qsN8H pMO3DRHuRLl3WcAXXWZOGaB1Y4SXNHLU+pSOADBgm3bXY9f/W2iAvtE+EMbvG5RW2aX2 CFhw== X-Gm-Message-State: AC+VfDwX05GfPLpWENTA9BN4x9B8esw0bzW9mQ2pu0hEiVxraahLxHTU nYpWkuFkwdJknazy4/YgUNbu6mE52BjAAA== X-Google-Smtp-Source: ACHHUZ6LrQyIGlpiJiXsUbdRl/sOp1QpDSy3qk4toKQ1w+3CHO/GuO1iWiU0NSeyCFcP0BtTRZU6nw== X-Received: by 2002:a17:902:e882:b0:1a1:8fd4:251 with SMTP id w2-20020a170902e88200b001a18fd40251mr11282491plg.55.1682790399179; Sat, 29 Apr 2023 10:46:39 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::99f? ([2601:681:8600:13d0::99f]) by smtp.gmail.com with ESMTPSA id b3-20020a170902b60300b001a9b7584824sm4573384pls.159.2023.04.29.10.46.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Apr 2023 10:46:38 -0700 (PDT) Message-ID: Date: Sat, 29 Apr 2023 11:46:37 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] RISC-V: Allow RVV VMS{Compare}(V1, V1) simplify to VMSET Content-Language: en-US To: Palmer Dabbelt , gcc-patches@gcc.gnu.org Cc: pan2.li@intel.com, yanzhang.wang@intel.com, juzhe.zhong@rivai.ai, kito.cheng@sifive.com References: From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 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,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 4/29/23 11:28, Palmer Dabbelt wrote: > On Sat, 29 Apr 2023 10:21:53 PDT (-0700), gcc-patches@gcc.gnu.org wrote: >> On Sat, Apr 29, 2023 at 8:06 AM Jeff Law via Gcc-patches < >> gcc-patches@gcc.gnu.org> wrote: >>> >>> >>> >>> On 4/28/23 20:55, Li, Pan2 wrote: >>> > Thanks Jeff for comments. >>> > >>> > It makes sense to me. For the EQ operator we should have CONSTM1. >>> That's not the way I interpret the RVV documentation.  Of course it's >>> not terribly clear.    I guess one could do some experiments with qemu >>> or try to dig into the sail code and figure out the intent from those. > > QEMU specifically takes advantage of the behavior Andrew is pointing out > it the spec, and will soon do so more aggressively (assuming the patches > Daniel just sent out get merged). Yea. And taking advantage of that behavior is definitely a performance issue for QEMU. There's still work to do though. QEMU on vector code is running crazy slow. jeff