aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2021-03-24 21:38:53 -0700
committerCraig Topper <craig.topper@sifive.com>2021-03-24 21:52:48 -0700
commitc8cf8bc7ec3f8721953d4545812aaac5d21ee97a (patch)
tree28b9e53a54c5b4d10681fed63f5a4941e0a58573 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
parent973ddb7d6e96e744a785ba64c065b592987a005f (diff)
downloadllvm-c8cf8bc7ec3f8721953d4545812aaac5d21ee97a.zip
llvm-c8cf8bc7ec3f8721953d4545812aaac5d21ee97a.tar.gz
llvm-c8cf8bc7ec3f8721953d4545812aaac5d21ee97a.tar.bz2
[RISCV] Add some 32-bit ctlz and cttz idiom tests to rv64zbb.ll. NFC
This implements various idioms using ctlz/cttz like Log2, Log2_Ceil, findFirstSetBit, etc. Some of these demonstrate that we fail to use clzw because the idiom breaks the isel patterns we use. The isel pattern we use is (add (cttz (and X, 0xffffffff)), -32). Some of the idioms cause the constant on the add to be different.
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions