diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-25 10:24:24 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-25 10:24:24 -0800 |
commit | 8ea220041503fb48876b0af35934740fe2613ec2 (patch) | |
tree | 7699facf807b21803eac9b42e0e46ae11b9f77ad /assemble.c | |
parent | 7849dd07b94248a696009229f97f6412781b5337 (diff) | |
download | nasm-8ea220041503fb48876b0af35934740fe2613ec2.tar.gz nasm-8ea220041503fb48876b0af35934740fe2613ec2.tar.bz2 nasm-8ea220041503fb48876b0af35934740fe2613ec2.zip |
Move HLE byte codes to \264..\267
Move the HLE byte codes to \264..\267 so as not to break up an unused
group of 8 (\240..\247).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'assemble.c')
-rw-r--r-- | assemble.c | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -74,16 +74,16 @@ * an arbitrary value in bits 3..0 (assembled as zero.) * \2ab - a ModRM, calculated on EA in operand a, with the spare * field equal to digit b. - * \240 - skip this instruction pattern if HLE prefixes present - * \241 - instruction takes XRELEASE (F3) with or without lock - * \242 - instruction takes XACQUIRE/XRELEASE with or without lock - * \243 - instruction takes XACQUIRE/XRELEASE with lock only * \250..\253 - same as \150..\153, except warn if the 64-bit operand * is not equal to the truncated and sign-extended 32-bit * operand; used for 32-bit immediates in 64-bit mode. * \254..\257 - a signed 32-bit operand to be extended to 64 bits. * \260..\263 - this instruction uses VEX/XOP rather than REX, with the * V field taken from operand 0..3. + * \264 - skip this instruction pattern if HLE prefixes present + * \265 - instruction takes XRELEASE (F3) with or without lock + * \266 - instruction takes XACQUIRE/XRELEASE with or without lock + * \267 - instruction takes XACQUIRE/XRELEASE with lock only * \270 - this instruction uses VEX/XOP rather than REX, with the * V field set to 1111b. * @@ -959,18 +959,6 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits, length++; break; - case 0240: - if (has_prefix(ins, PPS_REP, P_XACQUIRE) || - has_prefix(ins, PPS_REP, P_XRELEASE)) - return -1; - break; - - case 0241: - case 0242: - case 0243: - hleok = c & 3; - break; - case4(0250): length += is_sbyte32(opx) ? 1 : 4; break; @@ -986,6 +974,18 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits, ins->vex_wlp = *codes++; break; + case 0264: + if (has_prefix(ins, PPS_REP, P_XACQUIRE) || + has_prefix(ins, PPS_REP, P_XRELEASE)) + return -1; + break; + + case 0265: + case 0266: + case 0267: + hleok = c & 3; + break; + case 0270: ins->rex |= REX_V; ins->vexreg = 0; @@ -1566,9 +1566,6 @@ static void gencode(int32_t segment, int64_t offset, int bits, offset++; break; - case4(0240): - break; - case4(0250): data = opx->offset; if (opx->wrt == NO_SEG && opx->segment == NO_SEG && @@ -1619,6 +1616,9 @@ static void gencode(int32_t segment, int64_t offset, int bits, } break; + case4(0264): + break; + case4(0274): { uint64_t uv, um; |