libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-73.c
blob96c6cdde4c6ad398bb8ce096562b0f8c45e2715a
1 #include "tree-vect.h"
3 double x[2], y[2], z[2], w[2];
5 void __attribute__((noipa)) foo ()
7 double tem0 = x[1] + y[1];
8 double tem1 = x[0] - y[0];
9 double tem2 = z[1] * tem0;
10 double tem3 = z[0] * tem1;
11 z[0] = tem2 - w[1];
12 z[1] = tem3 + w[0];
15 int main()
17 check_vect ();
19 x[0] = 1.; x[1] = 2.;
20 y[0] = 7.; y[1] = -5.;
21 z[0] = 2.; z[1] = 3.;
22 w[0] = 9.; w[1] = -5.;
23 foo ();
24 if (z[0] != -4. || z[1] != -3.)
25 __builtin_abort ();
26 return 0;