From patchwork Thu Nov 9 12:00:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6ZKf5bGF5ZOy?= X-Patchwork-Id: 1861953 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SR0sY1pPFz1yRF for ; Thu, 9 Nov 2023 23:01:04 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D83D5385841B for ; Thu, 9 Nov 2023 12:01:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by sourceware.org (Postfix) with ESMTPS id 0AC013858C62 for ; Thu, 9 Nov 2023 12:00:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0AC013858C62 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0AC013858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=18.169.211.239 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699531250; cv=none; b=szOmrA/c5W2I/q4Ai0lfnj6V/brx4ygmMQ5YiJ1BQIxpglC9HKe/ZFgZsQ65cFPg8PklLAMAYJuyhHX7v9QR+qaogA1ucxx+s2r7I0VIfLARBxNtJPrxLn+ExLIM9UtpwHQ6wPoPn5UKLUOCe6Zqnpuk8WPUh4U3Id+D8iFnE0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699531250; c=relaxed/simple; bh=NFc/g5ZLToK25t/I7FIuP42bVGaOik69LeotkfOycAA=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=E9R0rfe1SSWgakBnOI1YRVCrxhDBrD1HO6F5njQl0iT0hb7/mRHaHtam/9mURFto5J4hV0E4yRMiFJZnOJXQNfstBEwDn7WbsGt9GGVUVTpwM91tc7BXjaZYcGyEk92BNKyyOHFXMAlcICst8Fo/K22BfMJMmsB1cNEiVBxN6Ek= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp71t1699531240t6ophih8 Received: from rios-cad122.hadoop.rioslab.org ( [58.60.1.26]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 09 Nov 2023 20:00:39 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: +oIWmpEafD+hB55Cvy97FlTxMVkdmoHqNgDS+P7kpknz7DnpnQjPkU79Kw8Zk +62ORK9IM3taoUJXkbhE3wOD7+/38XpcuMZOxizQFUK2JXmDBKFKc8e+LIx55/ik3vzXNUD iafkoN49gPFgGznAyaAuqYIw6pYAxC39qUPe3QZACPe9cPXh6gYR+iJep9QD+GgnlmH4Fa6 lZxxV0PYM3MmyL1MbOss6yRzsVONTvQTF5Pbsmd0FH8J+dN9OXv1xj4BJg29oeqxK9eRgfj nuP1RvX3Oyk5WjMgyWW3D1xYwdGoCE92XIvPFFBS5wfh61CVDn0fqONqx9m/KVs152lODn3 xYq2gOmdg/i62990dzUuPoXuDnRsfA0yHYnO4LDotWFLALbd1YnEv6MyV6us9cFmXS0dRVj yBaGEvkwb8Ewu9wFrkVfuw== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 10471540223784764705 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [Committed] RISC-V: Add PR112450 test to avoid regression Date: Thu, 9 Nov 2023 20:00:38 +0800 Message-Id: <20231109120038.109612-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org ICE has been fixed by Richard:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112450. Add test to avoid future regression. Committed. PR target/112450 gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr112450.c: New test. --- .../gcc.target/riscv/rvv/autovec/pr112450.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112450.c diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112450.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112450.c new file mode 100644 index 00000000000..964a4d34e3d --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112450.c @@ -0,0 +1,19 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O2 --param=riscv-autovec-lmul=m8 -fno-vect-cost-model" } */ + +int a, b, d, e; +short c; +void f() { + for (; e; e++) { + int g = 6; + for (; g > 2; g--) { + int i = -8; + while (i < 20) { + i += 5; + a += b; + } + c *= d; + } + b--; + } +}