From: Andy Polyakov Date: Fri, 4 Jun 2010 13:13:18 +0000 (+0000) Subject: x86 perlasm: add support for 16-bit values. X-Git-Tag: OpenSSL-fips-2_0-rc1~1074 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d08eae1bda65a88d1eb338a870d25c1727752954;p=oweals%2Fopenssl.git x86 perlasm: add support for 16-bit values. --- diff --git a/crypto/perlasm/x86gas.pl b/crypto/perlasm/x86gas.pl index b470507730..7af6e9cf7f 100644 --- a/crypto/perlasm/x86gas.pl +++ b/crypto/perlasm/x86gas.pl @@ -91,6 +91,7 @@ sub ::DWP } sub ::QWP { &::DWP(@_); } sub ::BP { &::DWP(@_); } +sub ::WP { &::DWP(@_); } sub ::BC { @_; } sub ::DWC { @_; } @@ -165,6 +166,7 @@ sub ::file_end } sub ::data_byte { push(@out,".byte\t".join(',',@_)."\n"); } +sub ::data_short{ push(@out,".word\t".join(',',@_)."\n"); } sub ::data_word { push(@out,".long\t".join(',',@_)."\n"); } sub ::align diff --git a/crypto/perlasm/x86masm.pl b/crypto/perlasm/x86masm.pl index 03e7ba66ae..279ab29b8c 100644 --- a/crypto/perlasm/x86masm.pl +++ b/crypto/perlasm/x86masm.pl @@ -14,7 +14,7 @@ sub ::generic { my ($opcode,@arg)=@_; # fix hexadecimal constants - for (@arg) { s/0x([0-9a-f]+)/0$1h/oi; } + for (@arg) { s/(?