summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2009-05-14 21:26:05 +0400
committerH. Peter Anvin <hpa@zytor.com>2009-05-15 07:20:02 -0700
commit52fb2575f31756bca34163fff05905e4f475c72e (patch)
tree62737f96af23543346efaf841975f4d892fea10b /insns.pl
parent40b81a40c73f463de5153be064f52a5ba2139134 (diff)
downloadnasm-52fb2575f31756bca34163fff05905e4f475c72e.tar.gz
insns.pl - add handling of pp VEX/XOP fields
We already have such kind of aliases for L field (via l0 and l1). Via p0,p1,p2 it's become easier to follow AMD docs while encoding VEX/XOP commands. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'insns.pl')
-rwxr-xr-xinsns.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/insns.pl b/insns.pl
index 7c5767e3..d757c3ea 100755
--- a/insns.pl
+++ b/insns.pl
@@ -677,11 +677,13 @@ sub byte_code_compile($) {
$w = 2;
} elsif ($oq eq 'ww') {
$w = 3;
- } elsif ($oq eq '66') {
+ } elsif ($oq eq 'p0') {
+ $p = 0;
+ } elsif ($oq eq '66' || $oq eq 'p1') {
$p = 1;
- } elsif ($oq eq 'f3') {
+ } elsif ($oq eq 'f3' || $oq eq 'p2') {
$p = 2;
- } elsif ($oq eq 'f2') {
+ } elsif ($oq eq 'f2' || $oq eq 'p3') {
$p = 3;
} elsif ($oq eq '0f') {
$m = 1;