Skip to content

Commit c8cf8bc

Browse files
committed
[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.
1 parent 973ddb7 commit c8cf8bc

File tree

1 file changed

+656
-28
lines changed

1 file changed

+656
-28
lines changed

0 commit comments

Comments
 (0)