From: Juzhe-Zhong Date: Thu, 9 Nov 2023 12:00:38 +0000 (+0800) Subject: RISC-V: Add PR112450 test to avoid regression X-Git-Tag: basepoints/gcc-15~4861 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83f66d90af69837f7c8fc88f8afb7074d4555394;p=thirdparty%2Fgcc.git 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. --- 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 000000000000..964a4d34e3d5 --- /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--; + } +}