[Bug target/90362] or1k: Soft divide does not work correctly
shorne at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 21 21:00:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90362
--- Comment #3 from Stafford Horne <shorne at gcc dot gnu.org> ---
Author: shorne
Date: Sun Jul 21 20:59:50 2019
New Revision: 273648
URL: https://gcc.gnu.org/viewcvs?rev=273648&root=gcc&view=rev
Log:
or1k: Fix issues with msoft-div
Fixes bad assembly logic with software divide as reported by Richard Selvaggi.
Also, add a basic test to verify the soft math works when enabled.
gcc/testsuite/ChangeLog:
PR target/90362
* gcc.target/or1k/div-mul-3.c: New test.
libgcc/ChangeLog:
PR target/90362
* config/or1k/lib1funcs.S (__udivsi3): Change l.sfeqi
to l.sfeq and l.sfltsi to l.sflts equivalents as the immediate
instructions are not available on every processor. Change a
l.bnf to l.bf to fix logic issue.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libgcc/ChangeLog
trunk/libgcc/config/or1k/lib1funcs.S
More information about the Gcc-bugs
mailing list