assmemble.c: fix VEX.W logic

Fix the generation logic for VEX.W, which unfortunately got the wrong
constants.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin 2010-08-16 15:21:48 -07:00
parent cfe6d20e3a
commit 229fa6c465

View File

@ -1136,10 +1136,10 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits,
}
switch (ins->vex_wlp & 060) {
case 000:
case 020:
case 040:
ins->rex &= ~REX_W;
break;
case 040:
case 020:
ins->rex |= REX_W;
bad32 &= ~REX_W;
break;