[PATCH] D151867: [Clang][RISCV] Make generic clz/ctz builtins defined for zero on RISCV targets.

Yunze Zhu(Thead) via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 6 02:30:50 PDT 2023


Yunzezhu added a comment.

In D151867#4398483 <https://reviews.llvm.org/D151867#4398483>, @asb wrote:

> Could you please post a separate patch that has a test that will show the codegen change (and demonstrate how it is unchanged when zbb or xtheadbb)?

Sure. I post a patch to demonstrate current codegen behavior for clz/ctz intrinsics when has ebb or xtheadbb: https://reviews.llvm.org/D152250.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151867



More information about the cfe-commits mailing list