glsl: Fix undefined shifts.
authorMatt Turner <mattst88@gmail.com>
Wed, 30 Dec 2015 19:48:22 +0000 (14:48 -0500)
committerMatt Turner <mattst88@gmail.com>
Wed, 13 Jan 2016 19:22:11 +0000 (11:22 -0800)
commita5fcff6628c641d01954d0af4aee0e723a570cad
tree27fedf5616021c31b2f1aa4b130892cbf513af1e
parent966a0dd72066cc98e0df9a02028ee0d85d466e26
glsl: Fix undefined shifts.

Shifting into the sign bit is undefined, as is shifting by 32.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_constant_expression.cpp
src/glsl/nir/nir_opcodes.py