Input argument of clz and ctz should be unsigned type and return value
should be integer like builtin_clz and builtin_ctz defined in clang/include/clang/Basic/Builtins.def.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
clang/include/clang/Basic/BuiltinsRISCV.def | ||
---|---|---|
22 | I'd prefer we use UWi instead of ULi. If we ever implement ilp32 on RV64, long will not be xlen bits. |
I'd prefer we use UWi instead of ULi. If we ever implement ilp32 on RV64, long will not be xlen bits.