Use logical shift right op for shifts of unsigned ints. Fixes issue #88.

This commit is contained in:
Matt Pharr
2011-08-29 10:32:26 -07:00
parent da76396c75
commit d0db46aac5
2 changed files with 23 additions and 4 deletions

11
tests/uint-shift.ispc Normal file
View File

@@ -0,0 +1,11 @@
export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
unsigned int x = 0xffffffff;
RET[programIndex] = x >> 16;
}
export void result(uniform float RET[]) {
RET[programIndex] = 0xffff;
}