spirv: Allow [i/u]mulExtended to use new nir opcode
authorSagar Ghuge <sagar.ghuge@intel.com>
Mon, 25 Feb 2019 22:56:29 +0000 (14:56 -0800)
committerSagar Ghuge <sagar.ghuge@intel.com>
Mon, 4 Mar 2019 23:50:25 +0000 (15:50 -0800)
commit58bcebd987b7c4e7d741f42699d34b8189ab9e79
tree54757f1f6361fd883b0ebc6d68d8f4669e9aff60
parent47ec9bdc604cb91af5acdb8522972ede7872cf71
spirv: Allow [i/u]mulExtended to use new nir opcode

Use new nir opcode nir_[i/u]mul_2x32_64 and extract lower and higher 32
bits as needed instead of emitting mul and mul_high.

v2: Surround the switch case with curly braces (Jason Ekstrand)

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_alu.c