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

    <tr>
        <th>Summary</th>
        <td>
            [Flang] Parsing error with `LOOP COUNT` compiler directive
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang:frontend
      </td>
    </tr>

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

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

<pre>
    We get: `error: expected end of line`

Sample code: https://godbolt.org/z/hrM8PKPef 
```
function foo(m)
    !DIR$ LOOP COUNT (10000)
    ! or another syntax
    ! !DIR$ LOOP COUNT MAX=10000, MIN=30, AVG=500
    do n = 1, m
       print*,  n
    end do
end function foo
``` 

Reference from ifort: https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/a-to-z-reference/j-to-l/loop-count.html 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtU01v3CAQ_TX4gryy8ecefNhmlSpqk6zapu0Vm7FNhMECnE3y6zt4E203LbLHM_OYx_DArREvzS-gA3iS7SgpE7DW2ODD8wydB0FBC2p6qqQGxEmyJ8nuZL_zaVZAOyMgVIzezw4dwq7xGYxojfIbYweMXvEd7W19-HKAnr6RINvpWcN-0Z2XRtPeGMLqibDtCaA4CEv3N98Iy-nX-_sDvbp_uPuByTpNcHycSY2lXBs_gqXuRXv-fAn_l-x295tk-ze-K3p7c4dhtvq7n5_RL5LkTCMM1RSTNA0TpjOAY7ZSe8J2AaH6DAUhhTnFwb_Y8KUi9G-Zv0EPFnQHtLdmorI31v-r9_F43OC6oDadQe2uO4NB6CMgaBeHBjQaAU-gzBw80y0TTuKhDYwDs-U6RoZZKrCx0cBnGWNFPCxSQMy1iO17P1jhVx7F9bDwAS4gHnsTv16kHkNKhQJjZlxl0X4z-knRCJq0LOqCZWlSRqLJxDbb8shLr6Ahxad1BVLs6YFbJ_VA12tKj9KP4dKejzFo9949FdLiFZZPEC1WNR-uJ5Yu7ZtWSj29f-LZmkeswlA6t0BQrSjLqo7Gpqyrvs3bLBNpytO0KCDnKWwhr7asFC2LFG9BudAwYaxfe852eGjhJASmcAeRbFjCWFIxNEWal5tK1H2ep22VVNs6rzKSJzBxqTahnfD7RLZZO2uXwSGopPPuDHLn5KBhlSnw88WPxjYPbuL6jguAKVo30qy7-APwUC8v">