<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/83076>83076</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang] implement __builtin_ctzg
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang,
            c23
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nickdesaulniers
      </td>
    </tr>
</table>

<pre>
    similar to https://github.com/llvm/llvm-project/issues/82058, https://github.com/llvm/llvm-project/issues/83075, and mentioned in https://github.com/llvm/llvm-project/issues/79630. To implement parts of C23 stdbit.h, it would be nice if we exposed a similar builtin to GCC.

This is a type agnostic builtin that lowers to an intrinsic I suspect we already have in LLVM.

cc @overmighty
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykkr1u3DAQhJ-GahYReBT1V6hw7nBBAKcz0hoUuSdtQpECl7JzefpA5xhO6mv4U8wM8M0YZpoC4iDqz6I-FWbLc0xDIPvTIZvNB8LExRjddWBayJsEOcKc88qiehDqLNR5ojxvY2njItTZ-5f369Oa4g-0WagzMW_IQp07JetOqOM9FpVs693CBAcLhkwxoAMKd3i2fVPJEp4i0LJ63F1hNSkzxAscVQWc3Ui5nPdcyvAaN-9gRAhkEegCrwj4a42MDgy8kxo38pnCTuzL8VgKeRLy4e18momBGAzk64pgphA5k_2QzCaDj6-YeJebABRyosBk4SvwxivavKcan9C4K8zmBXcGj4_fv_2XZC0ILeMLpoWmOV8LN1Sur3pT4HBoZdd3TXfoi3nQuu8OzcFc7Ki1dPZQ49gppbGvret0U9CgpNJSqUapqqr6UtsWW6UPOHaXVo-10BIXQ77cMZcxTcUN8LA31hTejOj5tjSlrDdhEkoJddx_qtrf9alIw62icZtYaOmJM3-4Zcr-NtU3dX36p63n57_onm3-PRVb8sN9E2v-BAAA__-thwMA">