Fix various tests/[frs]* files to be correct with 32 and 64-wide targets.

Still todo: tests/c*, tests/test-*
This commit is contained in:
Matt Pharr
2012-05-30 10:31:12 -07:00
parent d86653668e
commit 5cb53f52c3
45 changed files with 97 additions and 101 deletions

View File

@@ -3,7 +3,7 @@ export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = (1<<programIndex) * 1.5;
float a = (1<< (programIndex%28)) * 1.5;
if (programIndex & 1)
a = -a;
int exponent;
@@ -12,5 +12,5 @@ export void f_f(uniform float RET[], uniform float aFOO[]) {
}
export void result(uniform float RET[]) {
RET[programIndex] = 1+programIndex;
RET[programIndex] = 1+(programIndex%28);
}