nir: Define shifts according to SM5 specification.
authorDaniel Schürmann <daniel.schuermann@campus.tu-berlin.de>
Thu, 14 Feb 2019 07:19:09 +0000 (08:19 +0100)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 25 Feb 2019 18:59:43 +0000 (12:59 -0600)
commit0525bdc2259a541780ca7235a262c406ceb1a6e6
treee756baaf33b47540d6bde2a0679a8a7a60035412
parentc4fb6b0c8110e8f9dc861ab890ad200b7b820acd
nir: Define shifts according to SM5 specification.

SPIR-V shifts are undefined for values >= bitsize, but SM5 shifts
are defined to only use the least significant bits.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opcodes.py