aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRobin Dapp <rdapp@ventanamicro.com>2024-05-06 15:51:37 -0600
committerJeff Law <jlaw@ventanamicro.com>2024-05-06 15:52:29 -0600
commit4b1f128d4c25713116c7d9fd37016f7d9a112959 (patch)
tree57f4f1e7bc8e521206a3425acea2e56b51cd3951 /gcc
parent8c7cee80eb50792e57d514be1418c453ddd1073e (diff)
downloadgcc-4b1f128d4c25713116c7d9fd37016f7d9a112959.zip
gcc-4b1f128d4c25713116c7d9fd37016f7d9a112959.tar.gz
gcc-4b1f128d4c25713116c7d9fd37016f7d9a112959.tar.bz2
RISC-V: Add testcase for PR114749.
this adds a test case for PR114749. Going to commit as obvious unless somebody complains. Regards Robin gcc/testsuite/ChangeLog: PR tree-optimization/114749 * gcc.target/riscv/rvv/autovec/pr114749.c: New test.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114749.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114749.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114749.c
new file mode 100644
index 0000000..6733b04
--- /dev/null
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114749.c
@@ -0,0 +1,15 @@
+/* { dg-do compile } */
+/* { dg-options "-march=rv64gcv_zvl128b -mabi=lp64d -fwhole-program -O3 -mrvv-vector-bits=zvl" } */
+
+extern int a[];
+extern char b[];
+int c = 24;
+_Bool d[24][24][24];
+_Bool (*e)[24][24] = d;
+int main() {
+ for (short f = 0; f < 24; f += 3)
+ for (unsigned g = 0; g < (char)c; g += 2) {
+ a[f] = 0;
+ b[g] |= ({ e[f][f][f]; });
+ }
+}