[clang] [clang][CodeGen] Fix in codegen for __builtin_popcountg/ctzg/clzg (PR #90845)

Björn Pettersson via cfe-commits cfe-commits at lists.llvm.org
Thu May 2 12:30:03 PDT 2024


bjope wrote:

> Please add a testcase for i1/i2 (which are the only cases where this actually matters).

I added tests in a new file (builtins-bitint.c) to show that we get expected results for a target that isn't treating a zero input to ctzg/clzg as poison.

https://github.com/llvm/llvm-project/pull/90845


More information about the cfe-commits mailing list