From a5029a510a977ef9e64df9a84091a23b63c6fda7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 13 Jan 2013 20:49:27 +0100 Subject: [PATCH] test for vec/float --- tests/vec_ops.qc | 10 ++++++++++ tests/vec_ops.tmpl | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/vec_ops.qc create mode 100644 tests/vec_ops.tmpl diff --git a/tests/vec_ops.qc b/tests/vec_ops.qc new file mode 100644 index 0000000..a5c80c9 --- /dev/null +++ b/tests/vec_ops.qc @@ -0,0 +1,10 @@ +void print(string...) = #1; +string vtos(vector) = #5; + +void main(vector v) { + print(vtos(v), "\n"); + v /= 2; + print(vtos(v), "\n"); + print(vtos(v / 2), "\n"); + print(vtos(v), "\n"); +} diff --git a/tests/vec_ops.tmpl b/tests/vec_ops.tmpl new file mode 100644 index 0000000..39e2750 --- /dev/null +++ b/tests/vec_ops.tmpl @@ -0,0 +1,9 @@ +I: vec_ops.qc +D: some additional vector operations +T: -execute +C: -std=fteqcc +E: -vector '8 16 32' +M: '8 16 32' +M: '4 8 16' +M: '2 4 8' +M: '4 8 16' -- 2.39.2