-
Notifications
You must be signed in to change notification settings - Fork 1.6k
GCC 9: miscompilation of saxpy_kernel_16 #1964
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
Comments
Thanks. I vaguely remember fixing something very similar a year ago (ah yes, #1292) in response to more aggressive reuse of registers by gcc8, it seems I never got around to fixing more than the gemv kernels although I noticed that there were around 100 suspect files. |
FYI, GCC 9 will be even more aggressive at reusing registers than GCC 8. |
I guess so. I am about halfway through with fixing AXPY and DOT already, then to see what else has this defect. |
Thanks for the fixes. When do you expect it will land in a release? |
No release date set yet, probably end of February. |
Using latest GCC one can see many test failures. I isolated a test-case for that:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88880#c0
and the problem is in:
../kernel/x86_64/saxpy_microk_haswell-2.c:
Inputs 0 and 1 are marked as read-only, but are modified at lines 57 and 58.
Thus one needs something like:
Note that similar problem may be in other implementations (or asm statements).
Thanks
The text was updated successfully, but these errors were encountered: