mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
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:
parent
cfe6d20e3a
commit
229fa6c465
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user