aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vector-5.c
blob: 5a2870d5b1f0bb6116870938065fd845ecf6eb4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */

typedef int v4si __attribute__((vector_size(4*sizeof (int))));

v4si v;
int foo (int i)
{
  v4si v1 = (v4si) { i, i, i, i };
  v4si v2 = (v4si) { 3, 3, 3, 3 };
  v = v1 * v2;
}

/* The operation should be carried out as scalar op.  */
/* { dg-final { scan-tree-dump-times " \* 3;" 1 "optimized" } } */