mescc: Tinycc support: >>=, <<=.

* module/language/c99/compiler.mes (expr->accu): Support >>= <<=.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-23 08:51:42 +02:00
parent b44825a035
commit fd4f4f87be

View file

@ -846,6 +846,8 @@
((equal? op "&=") (wrap-as (i386:accu-and-base))) ((equal? op "&=") (wrap-as (i386:accu-and-base)))
((equal? op "|=") (wrap-as (i386:accu-or-base))) ((equal? op "|=") (wrap-as (i386:accu-or-base)))
((equal? op "^=") (wrap-as (i386:accu-xor-base))) ((equal? op "^=") (wrap-as (i386:accu-xor-base)))
((equal? op ">>=") (wrap-as (i386:accu>>base)))
((equal? op "<<=") (wrap-as (i386:accu<<base)))
(else (error (format #f "mescc: op ~a not supported: ~a\n" op o))))))))) (else (error (format #f "mescc: op ~a not supported: ~a\n" op o)))))))))
(pmatch a (pmatch a
((p-expr (ident ,name)) (append-text info ((accu->ident info) name))) ((p-expr (ident ,name)) (append-text info ((accu->ident info) name)))