[Piglit] [PATCH 06/11] Add CL build test for optimizations options
Aaron Watry
awatry at gmail.com
Wed Oct 10 16:44:07 PDT 2012
---
tests/all_cl.tests | 1 +
tests/cl/program/build/optimization-options.cl | 12 ++++++++++++
2 files changed, 13 insertions(+)
create mode 100644 tests/cl/program/build/optimization-options.cl
diff --git a/tests/all_cl.tests b/tests/all_cl.tests
index 7208b4b..e19c298 100644
--- a/tests/all_cl.tests
+++ b/tests/all_cl.tests
@@ -102,6 +102,7 @@ add_plain_program_tester_test(program_build, 'Macro definitions with values', 'b
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, 'Optimization Options', 'build/optimization-options.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/optimization-options.cl b/tests/cl/program/build/optimization-options.cl
new file mode 100644
index 0000000..9eaa664
--- /dev/null
+++ b/tests/cl/program/build/optimization-options.cl
@@ -0,0 +1,12 @@
+/*!
+[config]
+name: Optimization Options
+clc_version_min: 10
+build_options: -cl-opt-disable -cl-strict-aliasing -cl-mad-enable -cl-finite-math-only -cl-no-signed-zeros -cl-unsafe-math-optimizations -cl-fast-relaxed-math
+!*/
+
+void dummy_function() {}
+
+kernel void dummy_kernel() {
+ dummy_function();
+}
\ No newline at end of file
--
1.7.9.5
More information about the Piglit
mailing list