nir: Rewrite nir_type_conversion_op
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 13 Mar 2017 20:07:24 +0000 (13:07 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Mar 2017 14:36:40 +0000 (07:36 -0700)
commit6eb051e36f04b9b6d1cd01a3d86c023ab87d2f9f
tree0a632442a01777b74cf1eb7554fbf422dfa41044
parent9084b1db305cab0943f04b074d742c743364840f
nir: Rewrite nir_type_conversion_op

The original version was very convoluted and tried way too hard to not
just have the nested switch statement that it needs.  Let's just write
the obvious code and then we know it's correct.  This fixes a bunch of
missing cases particularly with int64.

Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/compiler/nir/nir.c