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

    <tr>
        <th>Summary</th>
        <td>
            ContinuousSyncMode/runtime-counter-relocation.c etc. FAIL on 32-bit SPARC
        </td>
    </tr>

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

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

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

<pre>
    Two profile tests `FAIL` on 32-bit Linux/sparc64:
```
  Profile-sparc :: ContinuousSyncMode/runtime-counter-relocation.c
  Profile-sparc :: ContinuousSyncMode/set-file-object.c
```
while the same tests work just fine on 64-bit.  It turns out the same failures occur on Solaris/sparcv9: the tests don't seem to be actually Linux-specific.  In fact, on Solaris/amd64 they `PASS` for both `i386` and `x86_64`.

Here are the actual failues:
```
  Profile-sparc :: ContinuousSyncMode/runtime-counter-relocation.c

compiler-rt/test/profile/ContinuousSyncMode/runtime-counter-relocation.c:14:23: error: CHECK-COUNTS-NEXT: expected string not found in input
// CHECK-COUNTS-NEXT: Function count: 1
 ^
<stdin>:4:13: note: scanning from here
 Counters: 2
 ^
<stdin>:5:2: note: possible intended match here
 Function count: 0
 ^

  output is

Counters:
  main:
    Hash: 0x000000000a498458
    Counters: 2
    Function count: 0
    Block counts: [0]
Instrumentation level: Front-end
Functions shown: 1
Total functions: 1
Maximum function count: 0
Maximum internal block count: 0
```
and
```
  Profile-sparc :: ContinuousSyncMode/set-file-object.c

compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c:32:11: error: MERGE: expected string not found in input
// MERGE: Function count: 32
          ^
<stdin>:9:13: note: scanning from here
 Counters: 1
            ^
<stdin>:10:2: note: possible intended match here
 Function count: 0
 ^

  outpus is

Counters:
  main:
 Hash: 0x275ce4c29c65beba
    Counters: 11
    Function count: 1
 Block counts: [0, 0, 0, 0, 0, 0, 0, 0, 1, 0]
  coverage_test:
    Hash: 0x0000000000000018
    Counters: 1
    Function count: 0
    Block counts: []
Instrumentation level: Front-end
Functions shown: 2
Total functions: 2
Maximum function count: 1
Maximum internal block count: 1
```
Maybe one of the developers (@ZequanWu, @DavidSpickett, @petrhosek, @vedantk) can shed some light on where to start looking?  These are among the very few last failing tests on Linux/sparc64.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8Vttu2zgTfhr6ZmBDog62L3zhOvHf4m-6RZ3FLvamoKixxYYiteTQTt5-Qclu3JzadBcVAikkhzPfHL7xCO_VziAuWPGGFRcjEaixbuGso2ZU2fpucX2w0Dm7VRqB0JMHVibr5bv3rEzAGsj4uFIE75UJt4yvfSecLHOWLVlywZIlK5PjX78E-DjoGveCEOWyJaysIWWCDX5zZ-SVrZHxtQuGVItjaYMhdGOH2kpBypqJfL02jzTuRW31BSWdVDzAd2h6PxsEL9qTwwfrbuBL8ARbZTA6XebR6QnAOwIKzniwge6vbYXSwaEHK2Vw8cLGauGUPwVoP484o_xgobaG8SmBR2yBLFQIQlIQWt8NkR37DqXaKhltGtgKSYyvvtUs2rrMo9K7mKKPy80mpmhrHVSWmrinslkZ94Sp4_J2Vn4uc1Ymk2Ms-vdbdAjCDVEYUAwOof81WR3e0rad0lGAGF_HMDG-PhYi4-vX686WaSxLnkVo6Jx1Pca3l6v_j1e__f7hejP-cPnndX9626EkrMGTU2YHxhJsbTA1KAPKdIGOSPma8fXTOtbByGgZejBxJz0GixWXx-vZylOtDMsuWbaM4NIenLGE8eulMCba3zrbQoMOjxpWg38xH8Bf1lpEl8-VdtZ7VWkEZQhNjTW0gmRzrv4x9OSRkWPebaAuECh_vn0G7yTXigjo6xLgrfBNr_k2OT0in8_yYnYv85SbAC_AA4A32sqb4aS_x4o3CSsuBoF3xpMLLRrqiwI07lH3yXLW0BhNPcidLHjwjT2Ys-RdW4p0OJ2fnVyJW9WG9uvZI3QngRh3Z4SG6h7qmdgDaokTpn9Bueda30_z7L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