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

    <tr>
        <th>Summary</th>
        <td>
            Fix tests using unsupported/ignored combination of -NEXT and -COUNT
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    Searching through `*/test` for `-NEXT-COUNT` shows there are tests that expect `CHECK-NEXT-COUNT-3` (or some other number instead of 3) to work but that is not supported by FileCheck.

Presently a search turns up these:

```
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_coo_test.mlir
compiler-rt/test/memprof/TestCases/memprof_merge_mib.cpp
```

Bonus points would be either implementing this in FileCheck (if is reasonable) or if not reasonable then just detect this and inform user their test won't work as expected (similar to noticing bad file split patterns).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU8GO2zgM_Rr5QiRw5MSTHHyYZmrsYoFugZkCextINm2zlSVDpJrOfv1C9nTTQ4NAhh7IJ_Lx0TDT6BEbdfqgTk-FSTKF2PTy7zO19B0LG_q35hlN7CbyI8gUQxonUHWp9KPSrSCLqksYQszg7tPHf15217-_fHrJKE_hxiATRgQTEXJ0vhsB_LFgJznn-sfH61-_JO6qnKr0OUTgMCOETAA-zRYjkGdB00MYoFL6AhLgFuI3sEk2YmLwQYDTsoQo2IN9g5YcXifsvu1V-aTKx-38HJHRi3sDA7y2CJKiZ0hLrplRVY-_xuemt_96nR3Fnwro9k8vOEYjFLzS7RMZh13GnxcTGV_Qc8jR189flG55BV-7EF5z-n6lWkm7MC_kMO6i3LlnnJcYBqXbF2S5Gka-o68zxhFfZ7L7bll-W-l2fgg-MSyBvDDcQnI9WASkVV2aF4czetmmTAzk77LladCQpY1oOHhjHWbxQwQaVrnveJbOw9fEAj1KnvFKZ3wP5IcQZ0iMMUdRXA0BtyzZg2xzNPxuDezzq0wzORPzmH0Q6nJ51vQwkEPgxZHAYkQwelb6si_6puov1cUU2Bzqc10fjsfyXEzNYbDm1B1Odjj3ZVf35dme7Lm61PpBX051XVCjS12V9aEq86_e10eLdX8ZTqdLZ_F4VMcSZ0Nu79z3eR_iWBBzwqau9ENdOGPR8c81ik0O2tk0sjqWjlj4niYkDpuWfryvQ-LcVPL_O1bplkYfIvbQhdmSX12VHb9uySrltipFiq6ZRBbOVtWt0u1IMiW778KsdJvffP_slhi-bpZc684OWkv_LwAA___SDFNp">