Revert "ARM: Use explicit remainder in __mesabi_uldiv call."

This reverts commit 7706fa7b80210f1439914a51ef74eb2a7a69fe6e.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-09-14 11:40:44 +02:00
parent 6359069607
commit 67cfa52e44
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 4 additions and 7 deletions

View File

@ -369,13 +369,10 @@
`(,(string-append "push___%" r0))
(armv4:call-label #f "__mesabi_idiv" 2))
;; __mesabi_uldiv(a, b, remainderp)
(append `(("push___%r3") ; slot for remainder
("mov____%esp,%r3")
("push___%r3") ; pointer to remainder
(,(string-append "push___%" r1))
(,(string-append "push___%" r0)))
(armv4:call-label #f "__mesabi_uldiv" 3)
`(("pop____%r3"))))))
(cons* `(,(string-append "push___0"))
`(,(string-append "push___%" r1))
`(,(string-append "push___%" r0))
(armv4:call-label #f "__mesabi_uldiv" 3)))))
(define (armv4:r0%r1 info signed?)
(let ((r0 (get-r0 info))