From 67cfa52e44202ddeb5d250e12da7528dd24d442d Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Wed, 14 Sep 2022 11:40:44 +0200 Subject: [PATCH] Revert "ARM: Use explicit remainder in __mesabi_uldiv call." This reverts commit 7706fa7b80210f1439914a51ef74eb2a7a69fe6e. --- module/mescc/armv4/as.scm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/module/mescc/armv4/as.scm b/module/mescc/armv4/as.scm index 49c10890..e30338d3 100644 --- a/module/mescc/armv4/as.scm +++ b/module/mescc/armv4/as.scm @@ -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))