R600: Implement zero undef variants of ctlz/cttz
authorJan Vesely <jan.vesely@rutgers.edu>
Tue, 15 Jul 2014 15:51:09 +0000 (15:51 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Tue, 15 Jul 2014 15:51:09 +0000 (15:51 +0000)
commit7b5f8a525a2ee8e4872e414e1a36671d6ce050fd
tree8f3cee88bd8b1993be08030f1bcca556458b82c7
parent6d6a055c6003b339bad0eb9b11132507cb4f51e8
R600: Implement zero undef variants of ctlz/cttz

v2: use ffbh/l if available
v3: Rebase on top of Matt's SI patches

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <tom@stellard.net>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213072 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/AMDGPUSubtarget.h
lib/Target/R600/EvergreenInstructions.td
test/CodeGen/R600/ctlz_zero_undef.ll
test/CodeGen/R600/cttz_zero_undef.ll