[Piglit] [PATCH 6/6] cl: Add vectore-store-int4 test

Tom Stellard tom at stellard.net
Wed Oct 3 10:02:12 PDT 2012


From: Tom Stellard <thomas.stellard at amd.com>

---
 tests/all_cl.tests                            |  1 +
 tests/cl/program/execute/vector-store-int4.cl | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 tests/cl/program/execute/vector-store-int4.cl

diff --git a/tests/all_cl.tests b/tests/all_cl.tests
index e613540..2f92103 100644
--- a/tests/all_cl.tests
+++ b/tests/all_cl.tests
@@ -113,6 +113,7 @@ add_plain_program_tester_test(program_execute, 'Vector arithmetic int4', 'execut
 add_plain_program_tester_test(program_execute, 'Vector arithmetic float4', 'execute/vector-arithmetic-float4.program_test')
 add_plain_program_tester_test(program_execute, 'Vector load int4', 'execute/vector-load-int4.cl')
 add_plain_program_tester_test(program_execute, 'Vector store float4', 'execute/vector-store-float4.cl')
+add_plain_program_tester_test(program_execute, 'Vector store int4', 'execute/vector-store-int4.cl')
 add_plain_program_tester_test(program_execute, 'Scalar bitwise op int', 'execute/scalar-bitwise-int.cl')
 add_plain_program_tester_test(program_execute, 'Scalar comparison char', 'execute/scalar-comparison-char.cl')
 add_plain_program_tester_test(program_execute, 'Scalar comparison float', 'execute/scalar-comparison-float.cl')
diff --git a/tests/cl/program/execute/vector-store-int4.cl b/tests/cl/program/execute/vector-store-int4.cl
new file mode 100644
index 0000000..ea358c3
--- /dev/null
+++ b/tests/cl/program/execute/vector-store-int4.cl
@@ -0,0 +1,16 @@
+/*!
+[config]
+name: int4_store
+clc_version_min: 10
+kernel_name: global_store
+
+[test]
+name: Global Address Space
+arg_out: 0 buffer int4[2] 1 2 3 4 5 6 7 8
+arg_in:  1 buffer int4[2] 1 2 3 4 5 6 7 8
+!*/
+
+kernel void global_store(global int4* out, global int4* in) {
+	out[0] = in[0];
+	out[1] = in[1];
+}
-- 
1.7.11.4



More information about the Piglit mailing list