mescc: Fix obnoxious assignment ERROR message.
* module/mescc/compile.scm (expression->register): Fix assignment ERROR message.
This commit is contained in:
parent
f7e208dd7b
commit
eedf2d2381
|
@ -1364,11 +1364,13 @@
|
||||||
(when (and (equal? op "=")
|
(when (and (equal? op "=")
|
||||||
(not (= size size-b))
|
(not (= size size-b))
|
||||||
(not (and (or (= size 1) (= size 2))
|
(not (and (or (= size 1) (= size 2))
|
||||||
(or (= size-b 2) (= size-b reg-size))))
|
(or (= size-b 2) (= size-b 4) (= size-b reg-size))))
|
||||||
|
(not (and (= size 2)
|
||||||
|
(= size-b 4)))
|
||||||
(not (and (= size 2)
|
(not (and (= size 2)
|
||||||
(= size-b reg-size)))
|
(= size-b reg-size)))
|
||||||
(not (and (= size reg-size)
|
(not (and (= size reg-size)
|
||||||
(or (= size-b 1) (= size-b 2)))))
|
(or (= size-b 1) (= size-b 2) (= size-b 4)))))
|
||||||
(stderr "ERROR assign: ~a" (with-output-to-string (lambda () (pretty-print-c99 o))))
|
(stderr "ERROR assign: ~a" (with-output-to-string (lambda () (pretty-print-c99 o))))
|
||||||
(stderr " size[~a]:~a != size[~a]:~a\n" rank size rank-b size-b))
|
(stderr " size[~a]:~a != size[~a]:~a\n" rank size rank-b size-b))
|
||||||
(pmatch a
|
(pmatch a
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
|
|
||||||
;; AMD
|
;; AMD
|
||||||
(define (x86_64:function-preamble info . rest)
|
(define (x86_64:function-preamble info . rest)
|
||||||
(format (current-error-port) "rest=~s\n" rest)
|
|
||||||
`(("push___%rbp")
|
`(("push___%rbp")
|
||||||
("mov____%rsp,%rbp")
|
("mov____%rsp,%rbp")
|
||||||
("sub____$i32,%rbp" "%0x80")
|
("sub____$i32,%rbp" "%0x80")
|
||||||
|
@ -63,7 +62,6 @@
|
||||||
|
|
||||||
;; traditional
|
;; traditional
|
||||||
(define (x86_64:function-preamble info . rest)
|
(define (x86_64:function-preamble info . rest)
|
||||||
(format (current-error-port) "rest=~s\n" rest)
|
|
||||||
`(("push___%rbp")
|
`(("push___%rbp")
|
||||||
("mov____%rsp,%rbp")))
|
("mov____%rsp,%rbp")))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue