We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ebcaf commit 4c3011eCopy full SHA for 4c3011e
gcc/testsuite/gcc.target/riscv/rvv/autovec/pr114734.c
@@ -0,0 +1,25 @@
1
+/* { dg-do run } */
2
+/* { dg-require-effective-target riscv_v } */
3
+/* { dg-options { -march=rv64gcv_zvl256b -mabi=lp64d -fwhole-program -O3 -mrvv-vector-bits=zvl } } */
4
+
5
+int f[18];
6
+int g[18];
7
+int h[18][18][18];
8
+int a[324];
9
+long b[18];
10
+int *i = g;
11
+int (*j)[18][18] = h;
12
+int z;
13
+int main() {
14
+ for (int m = 0; m < 18; ++m)
15
+ f[m] = 3;
16
+ for (int m = 0; m < 18; m += 1)
17
+ for (int n = 0; n < 18; n += 3) {
18
+ a[m * 8 + n] = j[m][m][0] ? i[n] : 0;
19
+ b[n] = f[n] ? -i[m] : 0;
20
+ }
21
+ for (long n = 0; n < 8; ++n)
22
+ z = a[n];
23
+ if (b[15] != 0)
24
+ __builtin_abort();
25
+}
0 commit comments