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

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

jmather-sesi
Copy link
Contributor

_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 Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: jmather-sesi / name: John Mather (d8ba474)

_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
Contributor 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.

@cary-ilm
Copy link
Member

cary-ilm commented Nov 3, 2024

@jmather-sesi, any progress with the CLA ? We're working on making a patch release soon and we'd like to include this.

@jmather-sesi
Copy link
Contributor Author

Hi Cary, I've followed up and it should be approved by tomorrow.

@cary-ilm
Copy link
Member

Apologies, this slipped through the cracks. We'll make a new release early in the new year.

Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cary-ilm cary-ilm merged commit 1bebbac into AcademySoftwareFoundation:main Dec 16, 2024
31 checks passed
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