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

Wrong result for _BitInt bitwise & testcase #114360

Open
mikaelholmen opened this issue Oct 31, 2024 · 1 comment
Open

Wrong result for _BitInt bitwise & testcase #114360

mikaelholmen opened this issue Oct 31, 2024 · 1 comment

Comments

@mikaelholmen
Copy link
Collaborator

llvm commit: 6effab9
Reproducer:

clang bbi-100697.c -O2 -std=c23
./a.out

Result:

Fail!

This starts happening with 1833d41
Before that commit we got

Pass!

which is the expected result.

I originally reported this in #107461 (comment) but @alexey-bataev did some analysis in #107461 (comment) suggesting that the error is somewhere in X86 Codegen rather than in SLP vectorizer.

As I wrote in the original report the input was originally part of a much larger test so I've reduced it a lot but unfortunately it's still quite large (and ugly).

bbi-100697.c.gz

@mikaelholmen
Copy link
Collaborator Author

Slightly reduced C input in bbi-100697_2.c but it's still not very nice.

bbi-100697_2.c.gz

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

No branches or pull requests

1 participant