From: Wolfgang Bumiller Date: Tue, 8 Jan 2013 20:55:34 +0000 (+0100) Subject: testcase for mul_vf/fv X-Git-Tag: before-library~341 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=16e789419d9737a0905dd95c8f408d4e69064a29;p=xonotic%2Fgmqcc.git testcase for mul_vf/fv --- diff --git a/tests/mul_vf.qc b/tests/mul_vf.qc new file mode 100644 index 0000000..3e60e23 --- /dev/null +++ b/tests/mul_vf.qc @@ -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 index 0000000..50d617f --- /dev/null +++ b/tests/mul_vf.tmpl @@ -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'