nir/opcodes: Make ldexp take an explicitly 32-bit int
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Apr 2016 18:12:44 +0000 (11:12 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 29 Apr 2016 04:36:52 +0000 (21:36 -0700)
commitf0af5b87ec140875dbc99d579b9b17ab935e27be
tree9489e9b0dcbff7d1ede236a2dcfd8cb8e8a1be32
parentbee40dd7309a1ed3acaa7c92fde199548047318d
nir/opcodes: Make ldexp take an explicitly 32-bit int

There is no sense in having the double version of ldexp take a 64-bit
integer.  Instead, let's just take a 32-bit int all the time.  This also
matches what GLSL does where both variants of ldexp take a regular integer
for the exponent argument.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/nir/nir_opcodes.py
src/compiler/nir/nir_opt_algebraic.py