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

    <tr>
        <th>Summary</th>
        <td>
            llvm@18 inline assembly requires more registers than available
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Github repo: https://github.com/HPC4AI/MeAtten
LLVM version: llvm@18
OS: Macos Sequoia 15.1
Laptop: Macair M2 16+512

When I install llvm@18 using brew, I tried to use it to compile the repo (https://github.com/HPC4AI/MeAtten).
However, I got error msg:

```bash
/opt/homebrew/opt/llvm@18/bin/clang  -c fused_scalexqxkt_mask_max_kernel.c -o fused_scalexqxkt_mask_max_kernel.o -I/opt/homebrew/opt/llvm@18/include -g -fPIC -march=armv9-a -ftree-vectorize -fomit-frame-pointer -I ./ -O3 -I ./
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
  348 |         ".macro PACK_KERNEL_M5xN4_FIRST_K4              \n"  // 定义宏:处理M5xN4块的第一个K4
      |         ^
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: error: inline assembly requires more registers than available
fused_scalexqxkt_mask_max_kernel.c:348:9: warning: inline asm clobber list contains reserved registers: X18, FP [-Winline-asm]
fused_scalexqxkt_mask_max_kernel.c:348:9: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
1 warning and 12 errors generated.
make: *** [fused_scalexqxkt_mask_max_kernel.o] Error 1
```

But if I use GNU Compiler to compile it, I wouldn't get this error msg. I would like to know whether I have some ways to make clang compile it successfully.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzslkGP2zYThn_N-DKQIVGULR180HqtxNhsski-r-nNoKSxxC5FOiRl7-bXF5S9dYICTZtLe1hBgGiSM-87Ixp6hHOy00QryG4gu52J0ffGrjzp7lno7ms_q037vHojfT_WaOlgIC2x9_7gIC2BVcCqblqcN2YAVr19WPNyC6y6p9J70hCX7979co9Hsk4aHaKVOg7A4ySHuPzwKczci8Y4_ERfRiMFJtk8CWHi4M3hsiykxXuGyQLYTZYwiEuIy889adyi1M4Lpa55cXRSd1hbOgFb4xa9ldSiNzg6QunDqDHDQSpC39NUFgLL_0lZrJhDXL41JzqSPat0xiNZaywOrgtpJpOwiM93LVwffrPKHDywqjcDnS1eJq59YVUtNbCqUUJ3iFGD-9FRu3ONUPT05enR7wbhHneDeNo9ktWk5g1G5se7DEbbv2dA6kaNLWHUYbR_2K4xGoRtekhvhR2ORSQw2ntLFB2p8cbKr4TR3gzSR3srBooORmpPFqMtzoFVGH1IX8YQlz8uB9Iy5TmkZRFOwNTWMJBaSU0onKOhVs9o6csoLTkcjA0vspPOk3Xoe6FRHIVUolYEcYmY8hxhucaXCxibD6KxBh_K9d3ubvPx_ebd7j57es931fbjp__t7jh-d0G21sBYCA0HBGGTQbmBooQNh5sC8uIyk1ewqeBmPS1lUHLIOWyWUMSQLyaFMF3cQrGcpsvLerkOd0iWQx5fBmV5x6cCJgvfF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