summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr21817-1.c
blob: d90d3239ce79d778bb46030de28acc8f80227ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* hppa*-*-hpux* needs -fno-common so that value can be given a 16
   byte alignment.  */

/* { dg-do compile } */
/* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */

typedef float v4sf __attribute__((vector_size(16)));
v4sf value;
void foo(void)
{
  unsigned int band;
  for(band=0; band < 2; band++)
    {
      value += (v4sf){1e9f,1e9f,1e9f,1e9f};
    }
}