[PATCH] D152250: [Clang][RISCV] Add test cases for intrinsics clz/ctz codegen when has extension zbb/xtheadbb

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 6 12:22:01 PDT 2023


craig.topper added inline comments.


================
Comment at: clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-xtheadbb.c:52
+//
+long clz_64_generic(long a) {
+  return __builtin_clzl(a);
----------------
Should the return type be int to match __builtin_clzl?


================
Comment at: clang/test/CodeGen/RISCV/rvb-intrinsics/riscv64-zbb.c:51
+//
+long clz_64_generic(long a) {
+  return __builtin_clzl(a);
----------------
Should the return type be int to match __builtin_clzl


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152250/new/

https://reviews.llvm.org/D152250



More information about the cfe-commits mailing list