mescc: Support ==, != as expression value.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 6 May 2017 15:30:14 +0000 (17:30 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 6 May 2017 15:30:14 +0000 (17:30 +0200)
commit2eae07de728129026fcaf93ad3999a40fb48fb19
tree26a82143ad4e6056175eb6800dd2d4729c2c902d
parentbe6e30a8faf0d1ed1ae2e901d91b490f45a8e9c8
mescc: Support ==, != as expression value.

* module/mes/as-i386.scm: Export them.
* module/language/c99/compiler.mes (expr->accu): Set accu to 0/1 for eq, ne.
* module/mes/as-i386.mes (i386:nz->accu, i386:z->accu,
  i386:accu<->stack): New functions.
* scaffold/t.c (math_test): Test it.
module/language/c99/compiler.mes
module/mes/as-i386.mes
module/mes/as-i386.scm
scaffold/t.c