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

    <tr>
        <th>Summary</th>
        <td>
            [LLParser] Better diagnostic for icmp by providing full comparison code
        </td>
    </tr>

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

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

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

<pre>
    This is just a minor issue but sometimes writing test of llvm-ir, it's helpful if when inputting the wrong code for icmp, I can see which option is available for icmp in the terminal instead of checking llvm lang ref.


Before and after
```diff
- ./build/bin/llc: error: ./build/bin/llc: <stdin>:81:15: error: expected icmp predicate (e.g. 'eq')
+ ./build/bin/llc: error: ./build/bin/llc: <stdin>:81:15: error: expected icmp predicate. (e.g 'eq', 'ne', 'slt', 'sgt', 'sle', 'sge', 'ult', 'ugt', 'ule', 'uge')
```

Same with fcmp
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzEk8GOszYQx5_GXEaLwEAgBw7Jfo1UaQ-V2hcw9gCzNTa1x0n37SvIVqGHnj_Jkmes-ds_a-avYqTJIfaiuYrmR6YSzz70gzJpGRRTnLPBm6_-j5kiUITPFBkULOR8AIoxIQyJIfoFmRaM8AjE5CZgjAx-BGvvyxsFId-BWMg2wox2HZMFGuExowNya-KnZkZ4BO8m0N4gjNsTelk37a-glYOICI-Z9Ax-ZfJuI1J3RVYN9lUP5ParGMNCTlkgFxmV2XD0jPrP7a2NC6xyEwQcc1FcnuuKow8IyhlQI2PYTk_FcxkaR1Fc3iAX8jYksmbbyQl5s1aL6gIYgg9b8L8VonqPbMiJ6hdRXbpSVJey-Y8U_15RM5rnV9aAhrRiBCE7zKcchGzxLyFbIc8bnLz-FJz8m-eA877FDl9xtHxIpmNij2XTIUlHTTpq0lGTvjXnY3-eHfxdLQgP4hlGvayZ6Stzrs4qw75sm7o5F21dZ3PfVV19amsppTGmrLuhG4banIaqbUapTmNGvSxkU3RFW3bluajzDs2IhSpUeap1oxpRF7gosvk2SrkPU7b7oS8b2ZzazKoBbdx9JaXDx9MtQsrNZqHffTGkKYq6sBQ5vq5hYrsb8uPjNxUiBtH8gCsyYwBDanI-MunXuA9fsAZ_J7PN9ZisBe2XVQWK3u1OylKw_cy8RlFdhLwJeZuI5zTk2i_7MNz_3d7W4D9Rs5C3nTcKefv-0L2X_wQAAP__AsVMJQ">