-
Notifications
You must be signed in to change notification settings - Fork 66
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
__divdi3 crashes on 68060 #391
Comments
I can't reproduce this issue. |
It must be config dependent. I made a self-contained test case with WinUAE that reproduces the crash: |
your executable crashes, but I cannot build such a crashing executable. |
agc391.zip |
I see, thanks for the clarification! I'll do a drop-prefix + clean and report back. |
Re-doing my setup fixed it. Sorry for the false alarm, closing this. |
I have a standard 16.16 fixed point division function, and it seem like the 060 version of __divdi3 has some issues. I created a small test case to reproduce it. This is my fixeddiv.c:
Then I build two executables:
m68k-amigaos-gcc -save-temps -noixemul -m68060 -o fixeddiv.060 fixeddiv.c
m68k-amigaos-gcc -save-temps -noixemul -m68020 -o fixeddiv.020 fixeddiv.c
The 020 one works, but the 060 exe crashes with a 80000005 program failure. The generated asm output is the same, so I guess the difference is in libgcc.a? For reference I uploaded the two executables I built, in case my setup is borked:
https://bszili.morphos.me/stuff/fixeddiv.020
https://bszili.morphos.me/stuff/fixeddiv.060
Thank you for the help in advance!
The text was updated successfully, but these errors were encountered: