mescc: Tinycc support: word array assignment.
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 8 Aug 2017 08:00:13 +0000 (10:00 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 8 Aug 2017 08:00:13 +0000 (10:00 +0200)
commitb16c9dbf16e0bc769cde3ede44ad60a4729db12d
tree0a5316de354227fb512be2a3306cc491bfdecf71
parent082c81dbbb8aa8b54f037ea099eac5c70149fa67
mescc: Tinycc support: word array assignment.

* stage0/x86.M1 (movzwl_(%eax),%eax): New define.
* module/mes/as-i386.mes (i386:word-mem->accu): New function.
* module/mes/as-i386.scm: Export it.
* module/language/c99/compiler.mes (expr->accu): word array assignment.
  (expr->accu*): word array assignment.
* scaffold/tests/7a-struct-char-array.c (test): Test it.
module/language/c99/compiler.mes
module/mes/as-i386.mes
module/mes/as-i386.scm
scaffold/tests/7a-struct-char-array.c
stage0/x86.M1