-
Notifications
You must be signed in to change notification settings - Fork 14.3k
feat: fix big endian shuffle vector miscompile #68673
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
feat: fix big endian shuffle vector miscompile #68673
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
b0d9595
to
ec74c1e
Compare
Also - AArch64ISD::NVCAST == ISD::BITCAST under LE, so it can be used in both cases. |
ec74c1e
to
7f20eab
Compare
It looks like there might be a few failing tests, possibly that need updating? It is possible that there are a number of places where bitcast is being used incorrectly under BE. |
Yes,I need time to check it. Some tests are hard to check manually, it seem generates automatilly for be. |
5162649
to
98bf8f8
Compare
Replace Check it plz. @davemgreen |
Ping ... @davemgreen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi - sorry about the delay it took a while to look through the details. There might be a way to convert NVCAST to BITCAST under LE and adjust all the needed patterns to handle either, but it doesn't look simple and this seems like a good fix for now. It checked out OK in all the tests I tried. There are some comments about adjusting the new test case below, but otherwise this looks OK to me.
98bf8f8
to
0206a97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM
"hstk30-hw [email protected]" |
fix #65884