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

    <tr>
        <th>Summary</th>
        <td>
            AIX cross compile on linux using integrated-as: XCOFFAsmParser directive not yet supported
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          matt-sm
      </td>
    </tr>
</table>

<pre>
    I'm trying to do a cross compile with: 
Ubuntu clang version 15.0.7
Target: powerpc-ibm-aix

By creating a sysroot I was able to successfully optimize and produce a .s file, but in assembly get this error:

```
"/usr/lib/llvm-15/bin/clang" -cc1as -triple powerpc-ibm-aix -filetype obj -main-file-name hello.cpp -target-cpu pwr7 -fdebug-compilation-dir=/home/matt/code/hello_cpp -dwarf-version=3 -mrelocation-model pic -mrelax-all --mrelax-relocations -o hello.o hello.s
clang -cc1as: fatal error: error in backend: XCOFFAsmParser directive not yet supported!
```

Which is here: https://github.com/llvm/llvm-project/blob/main/llvm/lib/MC/MCParser/XCOFFAsmParser.cpp

Just wondering if I'm missing something and/or if there is a plan to support this use case?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVM2OpDYQfhpzKbkFpqGnDxx6p4U0kaLkkCh7i_xTDd4YG7ns6ek8fWSYyW5WOSQSKnDZlL-fsiWRnTziwLpPrLtWMqc5xGGRKXFaKhXMY3hh4rRAig_rJ0gBTAAJOgYi0GFZrUO42zSz9gKsvrL68qvKPmXQTvoJXjGSDR6a7lAfTvuCX2ScMJUf1nDHuGpu1cKlfdun9_jpATqiTGVXCfSgGEKCF7hLAqkcFiiUtUaiW3buAWFNdrF_IkhvYI3BZI0g4UBwsw6ZeAaVE1gPkggX5R4wYYI0WwKMMUTWXr7dn_X1-7MPhWBizBSZGJ1VJbrXhTcdE6Oynolx48uEAK51Iwl4inZ1-D1H4AVOeqwIQX0BvkjrtxT3ckGY0blw0OsKPG0ycb1mWO_xBPxmUOWJ76rLZIPnxkbWXpkY57AgE2NxrmAJpoy2Yr9vxcxdxht_d4O11xb4EtEFvddZgkEHq9V7Wr5x6Rzwj8HXlQQ8vIP8eNOu0O73Tr54e5NJur-l3T-K_ErqP9Cbkvv8_NM4Xmj5WUbCCMZG1Mm-IviQ4IEJKK9riAkNE82_27LF32arZ7AEM0YsheeU1gKCiZGJcbJpzuqgw_Ju24d7awxfUBfBlAtqk2-z8mPN5vOPz1vYMTIx_hN0sepbKD9kSnAP3mAsnWtvsJ-fxRKVBIUF07w1tTdMjEWTG6QCvBCQsDrp997eqO8NmglBS0LWjpUZWnNuz7LCoelPp-Px3D111TycTqpv-ic0bV8f2-4slOxlX7fYmN7Ik6nsIGrR1kL0QjRt3R1ux9ao9qiF7lrRPJ3ZscZFWnco_A8hTpUlyjj0Td00lZMKHW03hRAe77BNlnPRXas4bIKqPBE71s5Soq9Vkk0Oh8vL5--ujeDBWZ_fIG_SWJ9wijKh4XsH_ff2qHJ0w_82fSNATIwbwb8CAAD__xMvqLI">