OSDN Git Service

* gcc.dg/vect/vect-105.c: Prevent compiler from hoisting abort
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr21817-1.c
1 /* hppa*-*-hpux* needs -fno-common so that value can be given a 16
2    byte alignment.  */
3
4 /* { dg-do compile } */
5 /* { dg-options "-fno-common" { target { hppa*-*-hpux* } } } */
6
7 typedef float v4sf __attribute__((vector_size(16)));
8 v4sf value;
9 void foo(void)
10 {
11   unsigned int band;
12   for(band=0; band < 2; band++)
13     {
14       value += (v4sf){1e9f,1e9f,1e9f,1e9f};
15     }
16 }