summaryrefslogtreecommitdiff
path: root/x86/iflags.ph
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 /x86/iflags.ph
parenta6358096202e1b3bec58decabaad007f4957392c (diff)
downloadnasm-02b60ddd1c86ba6d932301f4ab205027beafc688.tar.gz
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 'x86/iflags.ph')
-rw-r--r--x86/iflags.ph1
1 files changed, 1 insertions, 0 deletions
diff --git a/x86/iflags.ph b/x86/iflags.ph
index 723855c0..8f0a80fd 100644
--- a/x86/iflags.ph
+++ b/x86/iflags.ph
@@ -16,6 +16,7 @@ if_("SY", "Unsized operands can't be non-yword");
if_("SZ", "Unsized operands can't be non-zword");
if_("SIZE", "Unsized operands must match the bitsize");
if_("SX", "Unsized operands not allowed");
+if_("ANYSIZE", "Ignore operand size even if explicit");
if_("AR0", "SB, SW, SD applies to argument 0");
if_("AR1", "SB, SW, SD applies to argument 1");
if_("AR2", "SB, SW, SD applies to argument 2");