Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/vector-5.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
3 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
4
5 typedef int v4si __attribute__((vector_size(4*sizeof (int))));
6
7 v4si v;
8 int foo (int i)
9 {
10 v4si v1 = (v4si) { i, i, i, i };
11 v4si v2 = (v4si) { 3, 3, 3, 3 };
12 v = v1 * v2;
13 }
14
15 /* The operation should be carried out as scalar op. */
16 /* { dg-final { scan-tree-dump-times " \* 3;" 1 "optimized" } } */