commit | 165b7f3a4487e7ab7738dd9b37f2b3375692f8a2 | [log] [tgz] |
---|---|---|
author | Daniel Schürmann <daniel.schuermann@campus.tu-berlin.de> | Sat Jan 26 09:12:46 2019 +0100 |
committer | Daniel Schürmann <daniel@schuermann.dev> | Mon Jun 24 18:42:20 2019 +0200 |
tree | 9a077679a17a8e48b43f7cb67b22ec7e737948b4 | |
parent | a74f256c58a2c1fca3ce75e5199a04a22768450e [diff] |
nir: define behavior of nir_op_bfm and nir_op_u/ibfe according to SM5 spec. That is: the five least significant bits provide the values of 'bits' and 'offset' which is the case for all hardware currently supported by NIR and using the bfm/bfe instructions. This patch also changes the lowering of bitfield_insert/extract using shifts to not use bfm and removes the flag 'lower_bfm'. Tested-by: Eric Anholt <eric@anholt.net> Reviewed-by: Connor Abbott <cwabbott0@gmail.com>