From patchwork Mon Aug 22 09:09:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 56911 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE50A3857C41 for ; Mon, 22 Aug 2022 09:10:11 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by sourceware.org (Postfix) with ESMTPS id 850C83858009 for ; Mon, 22 Aug 2022 09:09:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 850C83858009 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: bizesmtp84t1661159387tiujfkav Received: from server1.localdomain ( [42.247.22.66]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 22 Aug 2022 17:09:46 +0800 (CST) X-QQ-SSF: 01400000002000C0I000B00A0000000 X-QQ-FEAT: FVl8EHhfVR5aSX/jgj6FLlRwPaAJ9dRIj+4tC/0nLEW8Ac3VaRHJ7vsYVETpR 8dk9DoBc1Nj3Q71ogjNFu2S/FPAidsP2CrRCvfQ83qPGbmnJSjtYYBAHF/yDD9cVVB7WTsF Ih57clmWd6Jb5JsmlqcviBrC+mHrx/glnJ9RfkEfC0jPA6nM0//rENe/HEMdDa03cb+yjhp TsAw9o1Lm2g00LYpOga4bZSzhnPLZ7UEFyo/pB6QTtED7+Q4JjIhu9JSDURgxAs6W4J5nhk jeIF3nw20eBSH9Cpdy9K0gjQvO+k9sGkGniMsD/BanaXBkgXkllVBm9bytHZKJKppz+8zZo cU3zeGMlPOon+lLTes22ZRfZTlCqpqqP/UK60DVwfNLjVxqb8pckJPgxD00BI6ISGj4O9Ra X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Subject: [PATCH] middle-end: Fix issue of poly_uint16 (1, 1) in self test Date: Mon, 22 Aug 2022 17:09:41 +0800 Message-Id: <20220822090941.131517-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: richard.sandiford@arm.com, kito.cheng@gmail.com, zhongjuzhe Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" From: zhongjuzhe This patch fix issue of poly_uint16 (1, 1) in machine mode self test. gcc/ChangeLog: * simplify-rtx.cc (test_vector_subregs_fore_back): Make first value and repeat value different. --- gcc/simplify-rtx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/simplify-rtx.cc b/gcc/simplify-rtx.cc index 7d09bf7103d..fc0d6c3ca2a 100644 --- a/gcc/simplify-rtx.cc +++ b/gcc/simplify-rtx.cc @@ -8434,7 +8434,7 @@ test_vector_subregs_fore_back (machine_mode inner_mode) for (unsigned int i = 0; i < count; ++i) builder.quick_push (gen_int_mode (i, int_mode)); for (unsigned int i = 0; i < count; ++i) - builder.quick_push (gen_int_mode (-(int) i, int_mode)); + builder.quick_push (gen_int_mode (-1 - (int) i, int_mode)); rtx x = builder.build (); test_vector_subregs_modes (x);