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

Extend constant range in simde_vshll_n_XXX intrinsics #1068

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

M-HT
Copy link
Contributor

@M-HT M-HT commented Sep 26, 2023

This extends constant range in simde_vshll_n_XXX intrinsics according to #1064, including tests for new values.

@mr-c
Copy link
Collaborator

mr-c commented Sep 26, 2023

@rosbif
Copy link
Collaborator

rosbif commented Sep 27, 2023

AFAICS the only failure is the compilation of all the n=0 cases with gcc 12 on armv7.
However this compilation succeeds and passes all tests with clang 15.
ISTM that this must be a gcc 12 compiler bug.
@M-HT : What do you think?

@M-HT
Copy link
Contributor Author

M-HT commented Sep 27, 2023

It looks like gcc bug, but when I try vshll_n_XXX intrinsics with zero shift in Compiler Explorer, it compiles correctly with ARM GCC 12.3.0 (other versions too), so I'm not sure why it doesn't compile here.

@M-HT
Copy link
Contributor Author

M-HT commented Sep 27, 2023

My mistake, Compiler Explorer doesn't compile the resulting code, that's why there's no error.

@M-HT
Copy link
Contributor Author

M-HT commented Sep 27, 2023

I filed a bug with gcc.

@mr-c
Copy link
Collaborator

mr-c commented Sep 28, 2023

Thank you @M-HT . Now that we have a bug number, can you add a workaround that disables that test?

See https://github.com/simd-everywhere/simde/blob/6858b928d19842fdc1a48dbd0fb1b57447da86b0/simde/simde-common.h#L915C1-L915C1

@M-HT
Copy link
Contributor Author

M-HT commented Sep 28, 2023

@mr-c This is hopefully what you had in mind.

@mr-c mr-c enabled auto-merge (rebase) September 28, 2023 12:53
@mr-c mr-c disabled auto-merge September 28, 2023 12:53
@mr-c mr-c enabled auto-merge (rebase) September 28, 2023 12:53
@mr-c mr-c merged commit fdafd8e into simd-everywhere:master Sep 28, 2023
74 checks passed
@M-HT M-HT deleted the extend-constant-range branch September 28, 2023 18:30
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.

3 participants