aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-14 15:23:00 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-14 15:23:00 -0700
commit02b60ddd1c86ba6d932301f4ab205027beafc688 (patch)
tree7b08d541a383f931ef740c2be512e820c95f070a /include
parenta6358096202e1b3bec58decabaad007f4957392c (diff)
downloadnasm-02b60ddd1c86ba6d932301f4ab205027beafc688.tar.gz
nasm-02b60ddd1c86ba6d932301f4ab205027beafc688.tar.xz
nasm-02b60ddd1c86ba6d932301f4ab205027beafc688.zip
LEA: allow immediate syntax; ignore operand size entirely
The memory operand size of LEA doesn't matter in any way as it isn't "real memory". Add an ANYSIZE option to ignore sizes entirely. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'include')
-rw-r--r--include/iflag.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/iflag.h b/include/iflag.h
index 7cf38eaa..a268c9bb 100644
--- a/include/iflag.h
+++ b/include/iflag.h
@@ -71,7 +71,7 @@ static inline int iflag_cmp(const iflag_t *a, const iflag_t *b)
IF_GEN_HELPER(xor, ^)
/* Some helpers which are to work with predefined masks */
-#define IF_SMASK (IFM_SB|IFM_SW|IFM_SD|IFM_SQ|IFM_SO|IFM_SY|IFM_SZ|IFM_SIZE)
+#define IF_SMASK (IFM_SB|IFM_SW|IFM_SD|IFM_SQ|IFM_SO|IFM_SY|IFM_SZ|IFM_SIZE|IFM_ANYSIZE)
#define IF_ARMASK (IFM_AR0|IFM_AR1|IFM_AR2|IFM_AR3|IFM_AR4)
#define _itemp_smask(idx) (insns_flags[(idx)].field[0] & IF_SMASK)