1 /* PR libstdc++/81706 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -mavx2 -mno-avx512f" } */
4 /* { dg-final { scan-assembler "call\[^\n\r]__?ZGVdN4v_cos" } } */
5 /* { dg-final { scan-assembler "call\[^\n\r]__?ZGVdN4v_sin" } } */
10 extern double cos (double) __attribute__ ((nothrow
, leaf
, simd ("notinbranch")));
11 extern double sin (double) __attribute__ ((nothrow
, leaf
, simd ("notinbranch")));
15 double p
[1024] = { 1.0 };
16 double q
[1024] = { 1.0 };
22 for (i
= 0; i
< 1024; i
++)
30 for (i
= 0; i
< 1024; i
++)
31 p
[i
] = __builtin_sin (q
[i
]);