summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-18 13:01:32 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-18 13:01:32 -0700
commit41c9f6fde06091199f1a95e0c045230baaa25bf4 (patch)
tree35df1b3c570cd4e3611acd94f7e2ee0b51d45f3e /assemble.c
parent5255fd1f36eece1cbf4000ffc3120dbcb9bf5038 (diff)
downloadnasm-41c9f6fde06091199f1a95e0c045230baaa25bf4.tar.gz
nasm-41c9f6fde06091199f1a95e0c045230baaa25bf4.tar.bz2
nasm-41c9f6fde06091199f1a95e0c045230baaa25bf4.zip
Implement "oword" (128 bits) as a first-class size
Implement oword, reso, do, as well as the SO flag to instructions. No instructions are actually flagged with SO yet, but this allows us to specify 128-bit sizes in instruction patterns.
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/assemble.c b/assemble.c
index ec3b112..e538454 100644
--- a/assemble.c
+++ b/assemble.c
@@ -1720,6 +1720,9 @@ static int matches(const struct itemplate *itemp, insn * instruction, int bits)
case IF_SQ:
size[i] = BITS64;
break;
+ case IF_SO:
+ size[i] = BITS128;
+ break;
default:
break;
}
@@ -1742,6 +1745,10 @@ static int matches(const struct itemplate *itemp, insn * instruction, int bits)
asize = BITS64;
oprs = itemp->operands;
break;
+ case IF_SO:
+ asize = BITS128;
+ oprs = itemp->operands;
+ break;
default:
break;
}