Don't sort opcodes; move all pseudo-ops to the beginning
commitaf9fe8f5976d3bd36312514687de32f1f8a84cca
authorH. Peter Anvin <hpa@zytor.com>
Tue, 2 May 2017 04:44:24 +0000 (1 21:44 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 2 May 2017 04:44:24 +0000 (1 21:44 -0700)
treea52d265e64bbf72074545428a0445e87395fedb2
parentd23066906c65b4a01aae562a57032c669788909e
Don't sort opcodes; move all pseudo-ops to the beginning

We don't need to sort opcodes anymore, since we are using an O(1) hash
and not binary search.  Instead, sort them in the order they first
appear in insns.dat; this lets us move all the pseudo-ops to a
contiguous range at the start of the file, for more efficient
handling.

Change the functions that process pseudo-ops accordingly.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
asm/assemble.c
asm/parser.c
common/common.c
include/insns.h
x86/insns.dat
x86/insns.pl