1 /* { dg-do run { target { powerpc*-*-linux* } } } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
4 /* Verify it can run successfully, especially on Power10 and later. */
9 __attribute__ ((noipa
)) void
10 div (double *d
, double *s
, int n
)
12 for (; n
; n
--, d
++, s
++)
18 double d
[] = {1,2,3,4,5,6,7,8,9,10,11};
19 double s
[] = {11,10,9,8,7,6,5,4,3,2,1};
21 feenableexcept(FE_DIVBYZERO
|FE_INVALID
);
25 for (i
= 0; i
< 11; i
++)
26 __builtin_printf(" %f", d
[i
]);
28 __builtin_printf("\n");