testcase for mul_vf/fv

This commit is contained in:
Wolfgang Bumiller 2013-01-08 21:55:34 +01:00
parent 7d4340469e
commit 16e789419d
2 changed files with 22 additions and 0 deletions

17
tests/mul_vf.qc Normal file
View file

@ -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');
}

5
tests/mul_vf.tmpl Normal file
View file

@ -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'