commit | a8b0b6e52b095f03c96a72394d15327c42512815 | [log] [tgz] |
---|---|---|
author | Daniel Schürmann <daniel@schuermann.dev> | Thu Jun 13 11:34:01 2019 +0200 |
committer | Daniel Schürmann <daniel@schuermann.dev> | Mon Jun 24 18:42:20 2019 +0200 |
tree | bb28cda68486d85053ae043526e4ab0c832fa5ee | |
parent | 1403c3a7bff43d37cd4bb10e4f31927597af894a [diff] |
nir: introduce lowering of bitfield_insert to bfm and a new opcode bitfield_select. bitfield_select is defined as: bitfield_select(mask, base, insert) = (mask & base) | (~mask & insert) matching the behavior of AMD's BFI instruction. Reviewed-by: Connor Abbott <cwabbott0@gmail.com>