From: Wolfgang Bumiller Date: Sun, 13 Jan 2013 19:49:27 +0000 (+0100) Subject: test for vec/float X-Git-Tag: before-library~267 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a5029a510a977ef9e64df9a84091a23b63c6fda7;p=xonotic%2Fgmqcc.git test for vec/float --- 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'