summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-03 22:14:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-03 22:14:03 -0700
commit0bff6a48fde21993ada37c97ac3334ac5d4bfccd (patch)
tree34827c53c5f010c182a1d4e0ec0a91c66374274a /insns.pl
parenta04019c7f4e95d862bce855301e28ba1e7c27dba (diff)
downloadnasm-0bff6a48fde21993ada37c97ac3334ac5d4bfccd.tar.gz
nasm-0bff6a48fde21993ada37c97ac3334ac5d4bfccd.tar.bz2
nasm-0bff6a48fde21993ada37c97ac3334ac5d4bfccd.zip
Use lower case for VEX and XOP in instructions table
Use lower case for VEX and XOP ("vex", "xop") to avoid visual confusion (and in the future potential real confusion) with upper-case hexadecimal numbers. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'insns.pl')
-rwxr-xr-xinsns.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/insns.pl b/insns.pl
index 6623864..7c5767e 100755
--- a/insns.pl
+++ b/insns.pl
@@ -15,12 +15,12 @@
$MAX_OPERANDS = 5;
# Add VEX/XOP prefixes
-@vex_class = ( 'VEX', 'XOP' );
+@vex_class = ( 'vex', 'xop' );
$vex_classes = scalar(@vex_class);
@vexlist = ();
%vexmap = ();
for ($c = 0; $c < $vex_classes; $c++) {
- $vexmap{"\L$vex_class[$c]"} = $c;
+ $vexmap{$vex_class[$c]} = $c;
for ($m = 0; $m < 32; $m++) {
for ($lp = 0; $lp < 8; $lp++) {
push(@vexlist, sprintf("%s%02X%01X", $vex_class[$c], $m, $lp));
@@ -249,7 +249,7 @@ if ( !defined($output) || $output eq 'd' ) {
print D "};\n";
}
- printf D "\nconst struct disasm_index * const itable_VEX[%d][32][8] =\n",
+ printf D "\nconst struct disasm_index * const itable_vex[%d][32][8] =\n",
$vex_classes;
print D "{\n";
for ($c = 0; $c < $vex_classes; $c++) {