]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
testcase for mul_vf/fv
authorWolfgang Bumiller <blub@speed.at>
Tue, 8 Jan 2013 20:55:34 +0000 (21:55 +0100)
committerWolfgang Bumiller <blub@speed.at>
Tue, 8 Jan 2013 20:55:34 +0000 (21:55 +0100)
tests/mul_vf.qc [new file with mode: 0644]
tests/mul_vf.tmpl [new file with mode: 0644]

diff --git a/tests/mul_vf.qc b/tests/mul_vf.qc
new file mode 100644 (file)
index 0000000..3e60e23
--- /dev/null
@@ -0,0 +1,17 @@
+void print(...) = #1;
+string vtos(vector) = #5;
+
+// getter to work around future -O
+vector get(vector v) {
+    return v;
+}
+
+void test(vector in) {
+    vector v = get(in);
+    vector b = v * v_x;
+    print(vtos(b), "\n");
+}
+
+void main() {
+    test('20 40 80');
+}
diff --git a/tests/mul_vf.tmpl b/tests/mul_vf.tmpl
new file mode 100644 (file)
index 0000000..50d617f
--- /dev/null
@@ -0,0 +1,5 @@
+I: mul_vf.qc
+D: mul-vf/fv liferanges
+T: -execute
+C: -std=fteqcc -Opeephole -Olocal-temps
+M: '400 800 1600'