From 52fb2575f31756bca34163fff05905e4f475c72e Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 14 May 2009 21:26:05 +0400 Subject: 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 Signed-off-by: H. Peter Anvin --- insns.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'insns.pl') 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; -- cgit v1.2.1