Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix call to _mm_cvtps_ph in half.h #448

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmather-sesi
Copy link

_mm_cvtps_ph doesn't support _MM_FROUND_NO_EXC. On Windows, if this is compiled, you will get the following warning:

warning C4556: value of intrinsic immediate argument '8' is out of range '0 - 7'

There is no corresponding instruction, so the flag should be removed.

References:
https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtps_ph&ig_expand=2244,2221,2220,2221,2252,2220,2221,2220,2221,2221,2107,2252,2107,2107
https://developercommunity.visualstudio.com/t/-mm-cvtps-ph-doesnt-accept-mm-fround-no-exc/1343857

Copy link

linux-foundation-easycla bot commented Oct 18, 2024

CLA Not Signed

_mm_cvtps_ph doesn't support _MM_FROUND_NO_EXC. On Windows, if this is
compiled, you will get the following warning:

`warning C4556: value of intrinsic immediate argument '8' is out of range '0 - 7'`

There is no corresponding instruction, so the flag should be removed.

References:
https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=_mm_cvtps_ph&ig_expand=2244,2221,2220,2221,2252,2220,2221,2220,2221,2221,2107,2252,2107,2107
https://developercommunity.visualstudio.com/t/-mm-cvtps-ph-doesnt-accept-mm-fround-no-exc/1343857
Signed-off-by: John Mather <[email protected]>
@cary-ilm
Copy link
Member

Thanks for the fix, we're happy to accept it, although our project policy is to require signed CLA forms even for minor contributions. Would you be able to sign the form, following the NOT COVERED link above? If it's too much of a hassle, I can submit a similar fix myself.

@jmather-sesi
Copy link
Author

Hi Cary, I'm happy to sign the CLA - I'm just in the process of finding out who the manager is on our side so that they can give me the go-ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants