Message ID | 20231110232754.1399391-1-juzhe.zhong@rivai.ai |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp1445839vqs; Fri, 10 Nov 2023 15:28:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjoWbJfeChOEiDrWml+Kn7HkZ4tIw6MEAPV7g3uTiffKGj9SPE3O32oi9iDHIRPFkxkcb0 X-Received: by 2002:a05:620a:370b:b0:77b:94c0:ed01 with SMTP id de11-20020a05620a370b00b0077b94c0ed01mr718818qkb.8.1699658908997; Fri, 10 Nov 2023 15:28:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699658908; cv=pass; d=google.com; s=arc-20160816; b=u7GwAEjL/7E9PT/Of8FQ/z8UNVaCBETdLjofrpQmlwU/B+aEF9PdJTOi9AMXNSeIwK ILaEdyX4aY/SCooEk39nuNq5EoJVSOy9uy/y/vHSc+NSGuendV7VK7Td/7/Kc8o9/Nz/ 7t1QEQXkrylVv+lvoTuojezEIsHD/TfZZ8yUEQ3lj9Y1/7DhBwqKkcyCh3QrkgJisfLw eqd9ku31R2rY3fsWJ9Zp0msftsJYrIE33BHCATWyrONC4YDcDDeRaS/Of0XpnbbvFF3s How+c6kPQ0gt+KoAtZ2/3GDGjZe5yrUyGrg7k17NgTJ4RyReG7HHnOp2cm93j1nOmwX+ LoAQ== 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=t5HNncASZCMQcJK0AgwDk4N6gwIgF/Um2FkQp+Ztm7I=; fh=idvV5TQ1gmHAoU8u1GUGfjilVySOK+BR5TeZLoSouN8=; b=WYGw0UVhEIQaZrf7H7CXlw6rJJFKh0Q97E5QEzEgWaVycbNnzXBbu4hq0QeYpPS0cz K1YP4RVyoRGBCNKj+2q7+lp7aeEhPgrAkPYYZXYwfEbmVmXtPCZL+uz+H2tNnMYOsDRX ztcwikJXizhHrwRmGbKbjRu/ce4peuUfPflVgtTMi7NOJezruyBp/hoCsFPM6zSyUIVe zSwZj3/lHs1E1NfgOwm0pdtX4Se6taZdupefMyMiSxQZXZaV0EAtKmB16NlVoLIR0/vZ Mksyt9EOJNPmO3+igXE8at8XH+E6GqYIYyv6w5Lx6IVfoyBBXJ+jbevWqDk1qIT0O+nb 0ONA== 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 5-20020a05620a04c500b00773c56f9551si389260qks.647.2023.11.10.15.28.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Nov 2023 15:28:28 -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 C0994385842C for <ouuuleilei@gmail.com>; Fri, 10 Nov 2023 23:28:28 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgeu1.qq.com (smtpbgeu1.qq.com [52.59.177.22]) by sourceware.org (Postfix) with ESMTPS id 076B63858D32 for <gcc-patches@gcc.gnu.org>; Fri, 10 Nov 2023 23:28:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 076B63858D32 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 076B63858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=52.59.177.22 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699658886; cv=none; b=GH91Plp4VfPPhCTvMEGKsbSxp3o7VKa602EVCeaQl+x374YAoEiXdJyOY7iGtbYHKbdxRjpfXfAnpZ8UuZ0K5OYvZ5iDKQolsNHOlovUNg6bCMX/UyGgOqGdXhJ/bYP9LisGAWoKmi7sUp+TwgrlkJxtpOV80FDz7gMZye91vzU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699658886; c=relaxed/simple; bh=3ikYjxybQBPjb+pMelxFC6HCFYHqMcgI6FjhyXSlIks=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=GhD3IrCOTpHHBrcp264SD2YnxFdhk2XyNd5+RwrNkxvZxKjCkIZNVz8faIGXY29NRSRWhFc3e6oimU7f4tTER+ocfV60lNrSSx53Cx8eWN5luyeoU1MCTVUfxhov1CNrmeTFoNqdjawVKUdKc3ws0u2B25P0FrPyIuVOLMZ4OoQ= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp76t1699658876t81o4ids Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 11 Nov 2023 07:27:55 +0800 (CST) X-QQ-SSF: 01400000002000G0V000B00A0000000 X-QQ-FEAT: UJd4nZbM1CdcmjQ4n4kZMYKLflYklGJibaLLr0+VSq5l7ToWS20gG97Bk53Gj 5n67rIiwRN0y1BKsMfhxoCDW4sGmT3IGAun+Y8bMoeTK8AjepN7YOg2dFZAoxe1JOBr5TIU N6l4WSiQGSpCVVYwfieJa738D7VzlN9cONEKV2juCtPCtczHhQBAjo03GPs529PjUtcVDCV zy1/MVnRJghESqYYs/iC03t3nH+AojpsZteMP8JcfSnfKcsSCXgHvzXVbauo5tzHpsf3oZZ Vx/VZ+kHK072SlQYgf+dZ/70UG6UfW1GC2+acxeyg4cnWA8PNwutwD3RoVlsLyqS8wdUYRU iJkoLeJkj2kD6wbQ+Ak40yUtfW42NP0VOs3BktZETWZBArAy3BLgdy6zMu8BdnkJEYGZfoU X-QQ-GoodBg: 2 X-BIZMAIL-ID: 14530385904176805820 From: Juzhe-Zhong <juzhe.zhong@rivai.ai> To: gcc-patches@gcc.gnu.org Cc: Juzhe-Zhong <juzhe.zhong@rivai.ai> Subject: [Committed] RISC-V: Add test for PR112469 Date: Sat, 11 Nov 2023 07:27:54 +0800 Message-Id: <20231110232754.1399391-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782221539936230545 X-GMAIL-MSGID: 1782221539936230545 |
Series |
[Committed] RISC-V: Add test for PR112469
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
juzhe.zhong@rivai.ai
Nov. 10, 2023, 11:27 p.m. UTC
As PR: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112469 which has been fixed by Richard patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/635994.html Add tests to avoid regression. Committed. PR target/112469 gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr112469.c: New test. --- .../gcc.target/riscv/rvv/autovec/pr112469.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112469.c
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112469.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112469.c new file mode 100644 index 00000000000..e647028b558 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112469.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */ + +int a, b, c; +static int *d = &a; +int e(int f) { return f == 0 ?: f; } +int g() { + a = 1; + for (; a <= 8; a++) { + b = e(*d); + c = -b; + } +}