* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / simd-3.c
blob42a38ae56e6519d02e2978c1c90601aece328b30
1 #include <float.h>
3 /* If double is not wider than float, we probably don't have DFmode,
4 or at least it's not as wide as double. */
5 #if DBL_MANT_DIG > FLT_MANT_DIG
6 typedef double floatvect2 __attribute__((vector_size (16)));
8 typedef union
10 floatvect2 vector;
11 double f[2];
12 }resfloatvect2;
14 void tempf(double *x, double *y)
16 floatvect2 temp={x[0],x[1]};
17 floatvect2 temp1={y[0],y[1]};
18 resfloatvect2 temp2;
19 temp2.vector=temp+temp1;
20 x[0]=temp2.f[0];
21 x[1]=temp2.f[1];
23 #endif