[RISCV] Make __builtin_riscv_clz/ctz return an unsigned int instead of signed int.
authorCraig Topper <craig.topper@sifive.com>
Fri, 14 Jul 2023 18:09:05 +0000 (11:09 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 14 Jul 2023 18:13:47 +0000 (11:13 -0700)
commitdf71216d0301780de9dfc467745dd10843de4400
tree2f99ee8496a644e1f7c404027d44948e49bf4e22
parentcb9f8a186834aae2545c4db4de1e539c2bbb6863
[RISCV] Make __builtin_riscv_clz/ctz return an unsigned int instead of signed int.

This is different than the target independent __builtin_clz/ctz, but
logically makes more sense.
clang/include/clang/Basic/BuiltinsRISCV.def
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-xtheadbb.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv32-zbb.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-xtheadbb.c
clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbb.c