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: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 163385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp381464vqs; Thu, 9 Nov 2023 04:01:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHb1kPLpYLg4sm4AhgA0+KNXR10RYoOluNQk5SauHk0rGd5OHCjn7q0xQprD/PMclnFLO6K X-Received: by 2002:a05:622a:11c3:b0:412:191c:ffa with SMTP id n3-20020a05622a11c300b00412191c0ffamr6578504qtk.26.1699531273162; Thu, 09 Nov 2023 04:01:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699531273; cv=pass; d=google.com; s=arc-20160816; b=y5idBgu8Qu6XY6gXAMemMxwihQlAPeY5MjV44BAlY9xx3XoVZtIezHZCFb13nFWQgt wTOVS3o/sCXpE8NrH72K6Ha9dj6rNeA7ritpA1hVvX5D41Iz3aWkWw2UBcQHbAFJG8zr uAq7PUTIEHlFrOlOKWlUUAPE5i3We+NOAqdF62gsCF021buVqYx4zWN43Msj1hbSoDOx y5OgGBkH+FDJDpEBxHDqWDURMMlE26EYj3V0V7MC0QMyap/f1t5IWf0OrEUxnCP4N5Me PJ6ME3iMJfKSc99sfLA/Rbw3/poTA4ZiKG7qgZGu0zNpK6S0VTntUA3Sk9HvHe4jNMb5 W+iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-filter:dmarc-filter:delivered-to; bh=jSecbJoGC9lY//4mLb1a+Fzj2TGEYhT++rEjHDIEXF8=; fh=12MRPJmZ1mgDpHqWoogMKqnaGRGM2b7lcuJroqfjJiw=; b=VOUFTwoDvcr2IiOlYFPAv9cwm7d23TRkY7rE0NlLrjN31QSKpt5W/KmGGE8dycDOVT pWJung6Fd1nUos6nxkBePaeiyY7mPclzFLCBW3/OHgi+d81OTaA6olrS5I3y8HondvNr vS+/r+glDwT2es3rKI+4iRVKBGthOlGkw5gIvpdfMgww2bDSxqxiI53ZPsQgHqtP8EZ4 0V9h9nHIgd14SfCFNHA7uqOObEqMJy1puVKzl8vGi60eSWCgEkqrbr5och3SyfxhsppV 0c/DaZIKYRRpVcTC0yYSKvmtgaLFrDKCz25fngKvYIgeXLU0afjJBUIEFUv6p+j+/8/5 dRdw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w4-20020ac87e84000000b0041819819519si2870842qtj.694.2023.11.09.04.01.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 04:01:13 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C617D38582BD for ; Thu, 9 Nov 2023 12:01:12 +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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782087704290148452 X-GMAIL-MSGID: 1782087704290148452 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--; + } +}