x86-asm: Reject some invalid arith imm8 instruction
commitf2a4cb0a0edc95ae74816275e82b4ade71c6f37a
authorMichael Matz <matz@suse.de>
Mon, 16 May 2016 03:10:21 +0000 (16 05:10 +0200)
committerMichael Matz <matz@suse.de>
Mon, 16 May 2016 03:10:21 +0000 (16 05:10 +0200)
treeeaae6cc045f5d4271dd9778cbdb0b222b2c1470e
parent0f36f60faa05da7e250a4b4eebd4b534e8a2b537
x86-asm: Reject some invalid arith imm8 instruction

There were two errors in the arithmetic imm8 instruction.  They accept
only REGW, and in case the user write a xxxb opcode that variant
needs to be rejected as well (it's not automatically rejected by REGW
in case the destination is memory).
i386-asm.c
i386-asm.h
tests/asmtest.S
x86_64-asm.h