---
tests/all_cl.tests | 1 +
tests/cl/program/build/math-intrinsics.cl | 12 ++++++++++++
2 files changed, 13 insertions(+)
create mode 100644 tests/cl/program/build/math-intrinsics.cl
diff --git a/tests/all_cl.tests b/tests/all_cl.tests
index 66de424..7208b4b 100644
--- a/tests/all_cl.tests
+++ b/tests/all_cl.tests
@@ -101,6 +101,7 @@ add_plain_program_tester_test(program_build, 'Macro
Definitions', 'build/macro-d
add_plain_program_tester_test(program_build, 'Macro definitions with values',
'build/macro-definitions-with-values.cl')
add_plain_program_tester_test(program_build, 'Mixed macro definitions',
'build/mixed-macro-definitions.cl')
add_plain_program_tester_test(program_build, 'Include Directories',
'build/include-directories.cl')
+add_plain_program_tester_test(program_build, 'Math Intrinsics',
'build/math-intrinsics.cl')
add_plain_program_tester_test(program_build_fail, 'Increment operator on
float', 'build/fail/increment-float.cl')
add_plain_program_tester_test(program_build_fail, 'Add different size vector',
'build/fail/add-different-size-vector.cl')
# Execute
diff --git a/tests/cl/program/build/math-intrinsics.cl
b/tests/cl/program/build/math-intrinsics.cl
new file mode 100644
index 0000000..ee8478d
--- /dev/null
+++ b/tests/cl/program/build/math-intrinsics.cl
@@ -0,0 +1,12 @@
+/*!
+[config]
+name: Math Intrinsics
+clc_version_min: 10
+build_options: -cl-single-precision-constant -cl-denorms-are-zero
+!*/
+
+void dummy_function() {}
+
+kernel void dummy_kernel() {
+ dummy_function();
+}
\ No newline at end of file
--
1.7.9.5
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit