mescc: Tinycc support: Unsigned comparison.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 May 2018 09:41:53 +0000 (11:41 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 May 2018 09:41:53 +0000 (11:41 +0200)
commitb4d1c40aa8d7e025426cfc28d1c74e5d16830614
tree71c289440a0e7b983ea88ce66cfc8edafe9cdd93
parent4faeece057bfb1910b5b1cd0ffe8d36a81f20c8a
mescc: Tinycc support: Unsigned comparison.

* stage0/x86.M1 (ja32, jae32, jb32, jbe32): New macro.
* module/mes/as-i386.mes (i386:jump-a, i386:jump-ae, i386:jump-b,
  i386:jump-be): Use it in new function.
* module/mes/as-i386.scm: Export them.
* module/language/c99/compiler.mes (test-jump-label->info): Use them to
  support unsigned comparison.
* scaffold/tests/7s-unsigned-compare.c: Test it.
* build-aux/check-mescc.sh (tests): Run it.
module/language/c99/compiler.mes
module/mes/as-i386.mes
module/mes/as-i386.scm
scaffold/tests/32-compare.c
scaffold/tests/7s-unsigned-compare.c [new file with mode: 0644]
stage0/x86.M1