Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / graphite / id-pr46845.c
blobf4da78eda35e566aa56f30b433d2d15cf33677f0
1 /* { dg-options "-O2 -ffast-math -fgraphite-identity -w -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */
3 typedef float V2SF __attribute__ ((vector_size (128)));
5 V2SF
6 foo (int x, V2SF a)
8 V2SF b;
9 if (x & 42)
10 b = a;
11 else
12 b = a + (V2SF) {1.0f/0.0f - 1.0f/0.0f, 1.0f/0.0f - 1.0f/0.0f};
13 while (x--)
14 a += b;
16 return a;