[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
i386 backend: i386:r-word-mem-add immediate size specifier in name
From: |
Danny Milosavljevic |
Subject: |
i386 backend: i386:r-word-mem-add immediate size specifier in name |
Date: |
Tue, 16 Jun 2020 17:23:38 +0200 |
Hi Janneke,
are you sure about the following?
(define (i386:r-word-mem-add info v)
(let ((r (get-r info)))
`((,(string-append "addw___$i8,(%" r ")") (#:immediate2 ,v)))))
^^^ ^
DEFINE addw___$i8,(%eax) 668100
DEFINE addw___$i8,(%ebx) 668103
Compare:
(define (i386:r-byte-mem-add info v)
(let ((r (get-r info)))
`((,(string-append "addb___$i8,(%" r ")") (#:immediate1 ,v)))))
DEFINE addb___$i8,(%eax) 8000
DEFINE addb___$i8,(%ebx) 8003
I guess it doesn't matter much what the M1 macro is called, but for consistency
I suggest $i16 for the addw.
pgppPb4PjXFkE.pgp
Description: OpenPGP digital signature
- i386 backend: i386:r-word-mem-add immediate size specifier in name,
Danny Milosavljevic <=