From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by sourceware.org (Postfix) with ESMTPS id 67BBC3858C2B for ; Wed, 10 May 2023 04:07:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67BBC3858C2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp65t1683691672tp040rp8 Received: from LAPTOP-EPITNQBU ( [58.60.1.20]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 10 May 2023 12:07:51 +0800 (CST) X-QQ-SSF: 01400000000000F0Q000000A0000000 X-QQ-FEAT: Xz3VOcA7Mr18LkIQUWaAQuJsIdDgk0G+hb/wu+qo5eSKH3L93nG7saVTQONHr jkcqrmmJOahbUybyAEbTqFlKYVShTvKRoPTfV5Gkpq68XHp1nrtjYElvfye+FLPzTBgkWIK bcMeV8vkRgq9FTrHkYPT4SRK/wp5jk43qjnGyuYsJUvxI7uusSRrQ8Zf7AKFW0hLUCCgOB0 f89vvazRDfXtpdfRLs9J72aAS+pLw7kKFZd10XCd9j703xz3FuGoTHdqUi/AvKh97ykk4YG SSftOef8DU+m6Fv1psPH60ikRYfln6JRixtg6yVDxkF4a23o5KfzXAARE9cxgRvtN7nuQot K1PjuYbknTrPQ66zwXkQ0z1KBKpTVYic25AbTaHC+8csVNQCbe6sjkS7/2IrgrtsH6LoAx/ Xdf7X2UAW+/jZlli2DDXOobgcq76vmwh X-QQ-GoodBg: 2 X-BIZMAIL-ID: 6620385333655439783 Date: Wed, 10 May 2023 12:07:50 +0800 From: "juzhe.zhong@rivai.ai" To: "Li Xu" , gcc-patches Cc: kito.cheng , palmer , "Li Xu" Subject: Re: [PATCH V2] RISC-V: Insert vsetivli zero, 0 for vmv.x.s/vfmv.f.s instructions satisfying REG_P(operand[1]) in -O0. References: <20230510040213.7313-1-xuli1@eswincomputing.com> X-Priority: 3 X-GUID: D110CC4B-2B99-4D12-9F0F-21D5DA466EC0 X-Has-Attach: no X-Mailer: Foxmail 7.2.16.188[cn] Mime-Version: 1.0 Message-ID: Content-Type: multipart/alternative; boundary="----=_001_NextPart104057816686_=----" X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,HTML_MESSAGE,KAM_DMARC_STATUS,KAM_SHORT,MIME_BASE64_TEXT,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RCVD_IN_SORBS_WEB,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,WEIRD_PORT 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: This is a multi-part message in MIME format. ------=_001_NextPart104057816686_=---- Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: base64 TEdUTS4gTGV0J3Mgd2FpdCBmb3Iga2l0bydzIGZlZWRiYWNrLg0KVGhhbmtz IDopDQoNCg0KDQpqdXpoZS56aG9uZ0ByaXZhaS5haQ0KIA0KRnJvbTogTGkg WHUNCkRhdGU6IDIwMjMtMDUtMTAgMTI6MDINClRvOiBnY2MtcGF0Y2hlcw0K Q0M6IGtpdG8uY2hlbmc7IHBhbG1lcjsganV6aGUuemhvbmc7IExpIFh1DQpT dWJqZWN0OiBbUEFUQ0ggVjJdIFJJU0MtVjogSW5zZXJ0IHZzZXRpdmxpIHpl cm8sIDAgZm9yIHZtdi54LnMvdmZtdi5mLnMgaW5zdHJ1Y3Rpb25zIHNhdGlz ZnlpbmcgUkVHX1Aob3BlcmFuZFsxXSkgaW4gLU8wLg0KVGhpcyBpc3N1ZSBo YXBwZW5zIGlzIGJlY2F1c2UgdGhl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