iflag: automatically assign values, saner handling of CPU levels
commita7ecf2646d6c80b994be7d340140379d580050cf
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 6 Feb 2018 22:43:07 +0000 (6 14:43 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 6 Feb 2018 22:43:07 +0000 (6 14:43 -0800)
tree50fc3d8fb36d4a96dff236ddaf2ee8420f27f020
parent4d7e680cb015e5d77764ff1cc83a417ecb73e31b
iflag: automatically assign values, saner handling of CPU levels

Automatically assign values to the instruction flags; we ended up with
a case where pushing flags into the next dword caused comparison
failures due to other places in the code explicitly comparing
field[3].

This creates necessary defines for this not to happen; it also cleans
up a fair bit of the iflag code.

This resolves BR 3392454.

Reported-by: Thomasz Kantecki <tomasz.kantecki@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
asm/assemble.c
asm/directiv.c
asm/nasm.c
include/iflag.h
include/insns.h
test/vaesenc.asm [new file with mode: 0644]
x86/insns-iflags.ph