diff options
author | Stafford Horne <shorne@gmail.com> | 2019-07-21 20:59:50 +0000 |
---|---|---|
committer | Stafford Horne <shorne@gcc.gnu.org> | 2019-07-21 20:59:50 +0000 |
commit | 9c0dba7c451ddd232dc3ba8a5ebc797762c74736 (patch) | |
tree | a80591c411c95cdd66538f67f0999f535bd3c782 /gcc | |
parent | 2e92185a033ec94d3dbaf22577110883db1474a1 (diff) | |
download | gcc-9c0dba7c451ddd232dc3ba8a5ebc797762c74736.zip gcc-9c0dba7c451ddd232dc3ba8a5ebc797762c74736.tar.gz gcc-9c0dba7c451ddd232dc3ba8a5ebc797762c74736.tar.bz2 |
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.
From-SVN: r273648
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 95e73d9..846d201 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2019-07-22 Stafford Horne <shorne@gmail.com> + PR target/90362 + * gcc.target/or1k/div-mul-3.c: New test. + +2019-07-22 Stafford Horne <shorne@gmail.com> + PR target/90363 * gcc.target/or1k/swap-1.c: New test. * gcc.target/or1k/swap-2.c: New test. |