mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
testcase for mul_vf/fv
This commit is contained in:
parent
7d4340469e
commit
16e789419d
2 changed files with 22 additions and 0 deletions
17
tests/mul_vf.qc
Normal file
17
tests/mul_vf.qc
Normal 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
5
tests/mul_vf.tmpl
Normal 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'
|
Loading…
Reference in a new issue