mescc: Support negative divide.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 6 Oct 2018 15:28:08 +0000 (17:28 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 6 Oct 2018 15:28:08 +0000 (17:28 +0200)
commit3dd4da895f40931d830f4663bbf7a46ef43d9782
tree9cac3f52bfacac3b49fa48dde1cb2eb4b6869d67
parentd862f1eceb32906f10345af3eee945f0aa039342
mescc: Support negative divide.

* module/mescc/i386/as.scm (i386:r0/r1, i386:r0%r1): Support
negative divide.
* module/mescc/x86_64/as.scm (x86_64:r0/r1, x86_64:r0%r1): Likewise.
* lib/x86-mes/x86.M1: Likewise.
* lib/x86_64-mes/x86_64.M1: Likewise.
* scaffold/tests/a0-math-divide-signed-negative.c: Test it.
* build-aux/check-mescc.sh (tests): Run it.
build-aux/check-mescc.sh
lib/x86-mes/x86.M1
lib/x86_64-mes/x86_64.M1
module/mescc/compile.scm
module/mescc/i386/as.scm
module/mescc/x86_64/as.scm
scaffold/tests/a0-math-divide-signed-negative.c [new file with mode: 0644]