public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Add PR112450 test to avoid regression
@ 2023-11-21  4:07 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-11-21  4:07 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:af4d208888cd97940fb142b17147145ece0171dd

commit af4d208888cd97940fb142b17147145ece0171dd
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date:   Thu Nov 9 20:00:38 2023 +0800

    RISC-V: Add PR112450 test to avoid regression
    
    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.
    
    (cherry picked from commit 83f66d90af69837f7c8fc88f8afb7074d4555394)

Diff:
---
 gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112450.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

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--;
+  }
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-21  4:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21  4:07 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Add PR112450 test to avoid regression Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).