From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) by sourceware.org (Postfix) with ESMTPS id 5A2963858D28 for ; Mon, 28 Aug 2023 02:37:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5A2963858D28 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: bizesmtp87t1693190211tbic9b98 Received: from LAPTOP-EPITNQBU ( [113.104.210.73]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 28 Aug 2023 10:36:50 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: 7YFKcddXagiPlGp5SMgnWUSwtU/avHpvz6XDevDzBF8D6C94X71DSGVmJO7DM inAzuzgW+79+tYTbrrxwXf2ihwFOusgPtiDWGHbQQNbLDg4O6mIY1KXOXcIh0kzxufE7kVx SczXMcoAgJVOv9x7fpbkTShmdc96pP5YmQUlTATN+1dWu9XRmU7CUGTgRkYteZQ/b4Ast4j p9Qd8L/89U+SWeExuuoxE7KI8RW+1NXMRp6BkEYTPtpWbb5+69v3/VAo9NaH/4z0fFaaVUi XemOkLOkbyg4sfVzaHIlppjlA4+/oa3E4I+gqa3KPVRjY37Zj+lC5642YgH2FFtHcWsKMt7 5OzPgqVYdCEL9aaGtokwIZ4JEQgErjqPbp0zAxgGeIXTOLC0QT02/CEidJM8uqZIbjweAAF lWVTp/zXM5ZBeV5n/8C9YtboEa8XETtC X-QQ-GoodBg: 2 X-BIZMAIL-ID: 14345897756767870345 Date: Mon, 28 Aug 2023 10:36:50 +0800 From: "juzhe.zhong@rivai.ai" To: "Li Xu" , gcc-patches Cc: kito.cheng , palmer Subject: Re: 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>, <202308281033408380233@eswincomputing.com> X-Priority: 3 X-GUID: C4E2975D-2A72-4F0A-B34F-89E54361307B X-Has-Attach: no X-Mailer: Foxmail 7.2.16.188[cn] Mime-Version: 1.0 Message-ID: <1F35254D2412EE9C+2023082810365013591015@rivai.ai> Content-Type: multipart/alternative; boundary="----=_001_NextPart106475805440_=----" X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,GIT_PATCH_0,HTML_MESSAGE,KAM_DMARC_STATUS,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP,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_NextPart106475805440_=---- Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 VGhhbmtzIGZvciB0YWtpbmcgY2FyZSBvZiB0aGlzIGlzc3VlLg0KT2sgdG8g YmFja3BvcnQgR0NDLTEzLg0KDQoNCg0KanV6aGUuemhvbmdAcml2YWkuYWkN CiANCkZyb206IExpIFh1DQpEYXRlOiAyMDIzLTA4LTI4IDEwOjMzDQpUbzog eHVsaTE7IGdjYy1wYXRjaGVzDQpDQzoga2l0by5jaGVuZzsgcGFsbWVyOyBq dXpoZS56aG9uZw0KU3ViamVjdDogUmU6IFtQQVRDSCBWMl0gUklTQy1WOiBJ bnNlcnQgdnNldGl2bGkgemVybywgMCBmb3Igdm12Lngucy92Zm12LmYucyBp bnN0cnVjdGlvbnMgc2F0aXNmeWluZyBSRUdfUChvcGVyYW5kWzFdKSBpbiAt TzAuDQpUaGlzIHBhdGNoIHNob3VsZCBiZSBiYWNrcG9ydGVkIHRvIHJlbGVh c2VzL2djYy0xMyB0byBhZ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