2
2
extern " C" float sinf (float );
3
3
extern " C" float cosf (float );
4
4
extern " C" float logf (float );
5
- extern " C" float ceilf (float );
6
- extern " C" float fabsf (float );
7
5
extern " C" double sin (double );
8
6
extern " C" double cos (double );
9
7
extern " C" double log (double );
10
- extern " C" double ceil (double );
11
- extern " C" double fabs (double );
12
8
template <typename name, typename Func>
13
9
__attribute__ ((sycl_kernel)) void kernel(Func kernelFunc) {
14
10
kernelFunc ();
@@ -30,14 +26,6 @@ int main() {
30
26
acc[0 ] += (int )log (1.0 ); // expected-no-error
31
27
acc[0 ] += (int )__builtin_logf (1 .0f ); // expected-no-error
32
28
acc[0 ] += (int )__builtin_log (1.0 ); // expected-no-error
33
- acc[0 ] += (int )ceilf (1 .0f ); // expected-error{{builtin is not supported on this target}}
34
- acc[0 ] += (int )ceil (1.0 ); // expected-error{{builtin is not supported on this target}}
35
- acc[0 ] += (int )__builtin_ceilf (1 .0f ); // expected-error{{builtin is not supported on this target}}
36
- acc[0 ] += (int )__builtin_ceil (1.0 ); // expected-error{{builtin is not supported on this target}}
37
- acc[0 ] += (int )fabsf (-1 .0f ); // expected-error{{builtin is not supported on this target}}
38
- acc[0 ] += (int )fabs (-1.0 ); // expected-error{{builtin is not supported on this target}}
39
- acc[0 ] += (int )__builtin_fabsf (-1 .0f ); // expected-error{{builtin is not supported on this target}}
40
- acc[0 ] += (int )__builtin_fabs (-1.0 ); // expected-error{{builtin is not supported on this target}}
41
29
acc[0 ] += (int )__builtin_fabsl (-1.0 ); // expected-error{{builtin is not supported on this target}}
42
30
acc[0 ] += (int )__builtin_cosl (-1.0 ); // expected-error{{builtin is not supported on this target}}
43
31
acc[0 ] += (int )__builtin_powl (-1.0 , 10.0 ); // expected-error{{builtin is not supported on this target}}
0 commit comments