]> granicus.if.org Git - llvm/commit
[ARM] Lower CTTZ on MVE
authorOliver Cruickshank <oliver.cruickshank@arm.com>
Mon, 16 Sep 2019 15:19:56 +0000 (15:19 +0000)
committerOliver Cruickshank <oliver.cruickshank@arm.com>
Mon, 16 Sep 2019 15:19:56 +0000 (15:19 +0000)
commit2498183766245190e086dec7472eb9989bb18e4d
treeda10e9a92e6ae6f7f1eecf2bea5825d0e665435d
parente68996a611753a42c626360194e556871cbaafa7
[ARM] Lower CTTZ on MVE

Lower CTTZ on MVE using VBRSR and VCLS which will reverse the bits and
count the leading zeros, equivalent to a count trailing zeros (CTTZ).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372000 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/Thumb2/mve-cttz.ll [new file with mode: 0644]