mescc: Tinycc support: fix accu value after comparison.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 29 Jul 2017 18:46:16 +0000 (20:46 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 29 Jul 2017 18:46:16 +0000 (20:46 +0200)
commit042022419e6d3b092e673d41598677bacbe4c9f9
tree737516a4b0d6dacfe163153173c06e81165fb63d
parentf29479dfa2e7ba83de400153b3b36089b234ac1b
mescc: Tinycc support: fix accu value after comparison.

* stage0/x86.M1 (setg___%al,, setge__%al, setl___%al, setle__%al): New
  defines.
* module/mes/as-i386.mes (i386:g?->accu, i386:ge?->accu,
  i386:l?->accu, i386:le?->accu, i386:jumpl, i386:jumple): New functions.
* module/mes/as-i386.scm: Export them.
* module/language/c99/compiler.mes (expr->accu): Use them to fix accu
  value after comparisons.
  (test-jump-label->info): Update comparison jumps.
module/language/c99/compiler.mes
module/mes/as-i386.mes
module/mes/as-i386.scm
scaffold/tests/32-compare.c
stage0/x86.M1