ac/nir: fix 64-bit shifts
authorConnor Abbott <cwabbott0@gmail.com>
Sat, 1 Jul 2017 02:10:43 +0000 (19:10 -0700)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 3 Jul 2017 18:58:59 +0000 (11:58 -0700)
commit2ec77f7a3c95802cd54b015f613b044c0d135f72
treeb26317030a8ff6ec773b92477edf8f7a3b55211e
parent7168425dd77f37fa048de5a4639619763556c331
ac/nir: fix 64-bit shifts

NIR always makes the shift amount 32 bits, but LLVM asserts if the two
sources aren't the same type. Zero-extend the shift amount to make LLVM
happy.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c