test for vec/float

This commit is contained in:
Wolfgang Bumiller 2013-01-13 20:49:27 +01:00
parent 3d62cb37f1
commit a5029a510a
2 changed files with 19 additions and 0 deletions

10
tests/vec_ops.qc Normal file
View file

@ -0,0 +1,10 @@
void print(string...) = #1;
string vtos(vector) = #5;
void main(vector v) {
print(vtos(v), "\n");
v /= 2;
print(vtos(v), "\n");
print(vtos(v / 2), "\n");
print(vtos(v), "\n");
}

9
tests/vec_ops.tmpl Normal file
View file

@ -0,0 +1,9 @@
I: vec_ops.qc
D: some additional vector operations
T: -execute
C: -std=fteqcc
E: -vector '8 16 32'
M: '8 16 32'
M: '4 8 16'
M: '2 4 8'
M: '4 8 16'