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

    <tr>
        <th>Summary</th>
        <td>
            LLVM's `MCParser` does not understand `.cfi_label` directives
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    ```console
❯ cat test.s
.globl foo
.align 2
.type foo,@function
.cfi_startproc
.cfi_label .Ldummy
.cfi_endproc
❯ riscv64-linux-gnu-gcc test.s -c
❯ /opt/llvm/bin/clang -target riscv64 test.s -c
test.s:5:1: error: unknown directive
.cfi_label .Ldummy
^
❯ /opt/llvm/bin/clang --version
clang version 18.1.6 (https://github.com/llvm/llvm-project 1118c2e05e67a36ed8ca250524525cdb66a55256)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/llvm/bin
```

This is currently a blocker for compiling upstream glibc with Clang for ARC, C-SKY, LoongArch, and RISC-V, as these all make use of `.cfi_label` in their `start.S` ([example](https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/riscv/start.S;h=ede186ef23b35b5af7c1c4ddf04b12519ed26e42;hb=HEAD#l48)).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVFGL4zYQ_jXKi7CxJUuxH_yQjc_06B6U23LQp0OWxo66smQkeXfz74sc7-XolsJBIJqZL6Nvvm8UEYKeLECL2ANi3UGs8eJ8Kwy8-eUwOHVtES9uH-lscAZQ0aHihD4R1HTo1GMpIo4QYh5ulXwybjB4dG6PhdGTxWSP4nWBrUjOqCrG1cqond2LctTfQxQ-Lt7Jn3JGDGBw_qjWeb7-lAer7sg7Ja-DfOFVZrRd37LJrtkk5U4SZx_giPRuiYj0xrzMiPSDtoj00gg74SwKP0F8b_nvJvvg9MQQPZWInjB473w6rPb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