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

    <tr>
        <th>Summary</th>
        <td>
            Orc global constructor order test fails on 32 bit ARM
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            test-suite,
            backend:ARM,
            orcjit
      </td>
    </tr>

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

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

<pre>
    The test added by https://github.com/llvm/llvm-project/pull/95532 has exposed a pre-existing issue on Arm 32 bit.

https://lab.llvm.org/buildbot/#/builders/154/builds/170

The test expects to see each constructor print a string, but this is what we get:
```
$ /home/david.spickett/build-llvm-arm/bin/lli -jit-kind=orc /home/david.spickett/llvm-project/llvm/test/ExecutionEngine/Orc/global-ctor-order.ll
H1

H3

M2

1
2
3
4
5
6
7
8
9
10

12

14

16
```

We know it isn't because of the added `stable sort` because the output order changes when I remove it but the gaps remain:
```
$ /home/david.spickett/build-llvm-arm/bin/lli -jit-kind=orc /home/david.spickett/llvm-project/llvm/test/ExecutionEngine/Orc/global-ctor-order.ll
H3
H1

M2



1
2

16

14

12
5
10
9
3
8
7
6
4
```
This may be due to relocations to the strings for those constructors not being resolved. Potentially it is the same problem as #94994.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcVVGPozgM_jXhxSqCAKU88NDbWbT3MNrT3kr3nAQXMpMmKDGdmX9_CrRzZTR30r2uVGHZDXb8fZ-NCEEPFrFl1W-sekjETKPz7YO46P7PSatnJEqk69_anyMCYSAQfY89yDcYiabAiiPjHePdoGmcZarcmfHOmMvN7CbvnlAR4900G8N411RVwWEUAfB1cgF7EDB53OGrDqTtADqEGcFZOPozFBykppRlDyw7rs9tYSNkGgulzg-Md3LWppeOlj-LWwB9YLzLq_IWWNw6u0_73iG-TqgoADkIiIBCjaCcDeRnRc7D5LUlEBDIazsw_gXkTECjDqADvIyC4AVhQIp3XAvss-tvdXkJjHejOyPjXR_BTsMV7dsFdwt4wkccpbYLmhp2T5p2z9r2rHhwXv1Xlg_gXymJDTLefX1FNZN29qsdtI3vf_cqsmicFGYX29w536NPjVnv_C2_x-pbce898nvvevAaux4sV1OtZr-aejWH1TTX1zek5NvU5cbbf47u8vwL4dm6F9AEOljGawKJSswBwZ2ARrwKme2zQEIahOA8sX32fiyecTNNM8ECBahR2AEjw2jhd_B4dheMBVb6EQYxhRgW2v5S1BefSWBL-r8L4ANXn_HIN-K4CaDZCOiwkcx-o6oPGP-Mk3gWbyAR-hnjHHs0TonY9TLWkax1egOcnAcaXcD7GQ9gXRRMXEcegzMX7FP4wxFa0sKYt1VXayJxRpi8kwbPIAIwXjRl05Rp0rdF3xSNSLDN6_xQ50Wxz5KxxaLK6z5Xh7oSElV9wrrEKuPV4ZAVp6pKdMszXmb7_JBzzsssrXh14I3KmqpQZS97VmZRZuZ98yXL0mybqsnzxAiJJiw7nfNI-y7MmpBxzvgXxrkU6hmjkI7HH4_vUefVk6boVg-JbxcRyXkIrMyMDhT-qUWaDLbfvYJVNJvtuM7KskhPQpsQF_m6xOH44zGZvWn_95djaS4s347Y36XlfwcAAP__FfgHUg">