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

    <tr>
        <th>Summary</th>
        <td>
            [ARM] Default behavior is different about mtp  with gcc
        </td>
    </tr>

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

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

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

<pre>
    If using ARMv7-a and later architectures, gcc use cp15 and llvm uses soft, Can I modify this default behavior? I'm sure that helps with performance

https://github.com/gcc-mirror/gcc/blob/e9bd9d42dddd7a9b1c080426b0b16d3704673cbf/gcc/config/arm/arm.cc#L3968-L3974

demo:https://godbolt.org/z/6cP16naW8

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8kk1r3DAQhn-NfBl2kUb-0sGHzaaGhQRKLoXe9DG2VWxrkeQN6a8v3g0t5NCLxIw0M-_wvDolP65EHaueWPVc6C1PIXY_J1onvY4ChSxMcB_dZYAt-XWE09vrrTlo0KuDWWeKoKOdfCabt0iJfevZ05m1ZxithS0R2KuoHr_n27JnEqQwZIZnOOsVLrAE54cPyJNP4GjQ25zB0KRvPkQme7gwbBZIWyTIk84w0XxN8O7zBFeKQ4iLXi0xfmL8NOV8TUyeGPYM-9HnaTNHG5Y9sPaw-BhDfAQMezMHw7AnZZxyJTrnXKOVEZa3vMTacCNqJxte1o20ZvhbZ8M6-JFhr-PyOI97Xr5IVbeHF6ma8iHH0RKY_KoqOBPmfAxxb_GbYV_b76Je9Y-W8VPhOumUVLqgTjSyqbiqFBZTV2OtdVNWLQ2makypWs5lPaiyFoqk5YXvkGPFBSIXUgo8CitbV7dVpZCaUgys5LRoPx93Evv4wqe0USdQtnVZzNrQnO5OQFzpHe6vDHE3Ruz2ooPZxsRKPvuU07822ef5bqHT2yurnuH5C0XYyfphoEhrBm3ClmHJV3hAHK0ttjh3_2G3T_q8DtcYfpHNDPu7vsSw_1zg1uGfAAAA__8_k-Jp">