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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] fmod is not restricting vector size
        </td>
    </tr>

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

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

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

<pre>
    This is in continuation of issue #129003.

We are currently not restricting vector sizes for the `fmod` intrinsic.
https://github.com/llvm/llvm-project/blob/9d7e1d92dbef5aa4d11deed360685a86935953d2/clang/lib/Headers/hlsl/hlsl_intrinsics.h#L137-L146


We need to exclude vec1s and limit to vec4s, similar to how PR #130724 does it.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUkk2L3iAQxz-NuQwbdIx5OeSw7RL28BxKW-ixmDhPYmt0UfNst5--mN22t0JBGFAc_i8_nZJdPdHI1DumHip95C3E8fv-RH6t5mBexs-bTVCOhyX4bP2hsw0ewhVsSgcBQylw4FzWjN8zfv-FQEeC5YiRfHYv4EOGSClHu2TrV7jRkkOEZH9SgmuIkDcC1vLrHgxrOVifo_XJLmXhlvNTYvKe4cRwWm3ejrlews5wcu72e9w9xfCNlsxwml2YGU6D6UiYAc1MV6V1Y4QwREa2vO2V7ttBqkFJgwynxWm_lkW2fHwkbSgmhtPmknsbX_9oSvXGUF6E7O4uomlfLb-69kQGcgD6sbjDUPEpEmhvwNnd5vJ0o6VJDN9Dsrt1Opa7LTzDh49njJJ32IAJlMDmujKjNIMcdEWj6BrRCzFwWW2j4qhxEJ1UjWy7ueF6mbu275VpNHW9quyIHBWXApHLHmUtrobPAxrTi1lLpVjDadfW1SW8OsS1OrschRQcm8rpmVw6oUD09PzaNEMsjMTxTHw-1sQa7mzK6e-abLM7aXq8fLow9QCl1ILPPyCojujG_-75lFRqetN8G_FXAAAA__9lvuSn">