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

    <tr>
        <th>Summary</th>
        <td>
            Ptx assembly aborted due to errors
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            cuda,
            crash-on-valid
      </td>
    </tr>

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

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

<pre>
    Hi!

We are bumping Clang to commit 1ae33bf42680b156fe0f5cd6163bf24ef45d8cd3, and we find that it crashes building CUDA code with this error trace:

```
ptxas /tmp/patch-4eaef1/patch-sm_61.s, line 3885; fatal   : Parsing error near '.': syntax error
ptxas fatal   : Ptx assembly aborted due to errors
clang: error: ptxas command failed with exit code 255 (use -v to see invocation)
clang version 16.0.0 (https://github.com/llvm/llvm-project.git 1ae33bf42680b156fe0f5cd6163bf24ef45d8cd3)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: external/llvm/usr/bin
```

 Is this a known problem?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU01vnDAQ_TVwsUDYfCx74JBktWpuPbTqMRrwAG6NQbbZkP76jiFtUqlSFckeaxjPmzfPQzvLl-aTigSPskuU3R32GzKwyNp1WpQZ2IMGsn5m3TxNyjMOmOdtX4iqzlpeVj1mfdnJilf0VRTYF6WsO5lH4oGBkewZWa_o9CN4RvmdBTeiI3yl5V7g6-WOwCWyZ-VHuqccQ2tny7yFDqP87j27qMpe1-4ufgPHInH100J2Ad-NSYGAPf_juump4qkLhLQyyPK6LqP8nvXgQTPGqAL7DNYFMkdhg2AJ9JTSDlH3YjxsR_B93b8Q_MbAOZxa_cKgna1HyeSKQbo90R2ZXdAzJET8PirvM2LCaed8OuApcoAHvYOAPShNULs4uAUFg1aiLIlhvTpkyS3UcIhMmdvcgVezicT5XTl2Q2pvNoxXaZZmIXH0fnFBW3GlNRD42qZUkhytb7-PZLHzd-x8Onzo5V9rfwE7oA8dbXX1VBXJan6Y-dkk9Azrlgxmfb03WgTJJupL7_3PTm1H6NE4kpj6v6hdGtw8WgP6jebqLNlWmX_Ox2HZozvmCthOgFFbrcYpyq8xNryqKlHQUIhYNrk852eIvfIam_-_abxa3XxMS3KVcyvSQF7LujjzeGy6liNAW54k1Dmc-w7aE2_7-lSfsChzGWtoUbuGBiYSolsl0BEGOnjhh0pmk9xAKxm-l5dYNSITgmciy6qy4DyVGdRdKfqcn05YnouoyHCiyUoDtXS2Q2ybnWW7Do6CWjnv3oKkghoM4s6A8GH142ybDqye3QD6hj-XeG-r2Xv6BXu_XYI">