From 16e789419d9737a0905dd95c8f408d4e69064a29 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 8 Jan 2013 21:55:34 +0100 Subject: [PATCH] testcase for mul_vf/fv --- tests/mul_vf.qc | 17 +++++++++++++++++ tests/mul_vf.tmpl | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 tests/mul_vf.qc create mode 100644 tests/mul_vf.tmpl 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' -- 2.39.2