fix tests/kernel/test_printf.cl
PoCL was using sqrt(-1.0f) for NaN, however AFAICT
it is implementation defined whether this produces NaN or -NaN,
and printf() does print the nan's sign.
Fixed by replacing sqrt() with NAN constant instead.
kernel void test_printf()
{
+ printf("");
printf("INTEGERS\n\n");
printf("1\n");
@@ -71,7 +72,8 @@ kernel void test_printf()
printf("%0.3f\n", 0.0f);
printf("%+8.2f\n",-10.3456);
- printf("%f\n",sqrt(-1.0f));
+
+ printf("%f\n", NAN);
printf ("\n%%e conversion\n\n");
