From: Andy Polyakov Date: Fri, 9 Dec 2011 19:16:35 +0000 (+0000) Subject: perlasm/x86gas.pl: give a hand old assemblers assembling loop instruction X-Git-Tag: OpenSSL_1_0_1-beta1~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edcba19c23db0265823ac398dced4da1ebe210ab;p=openssl perlasm/x86gas.pl: give a hand old assemblers assembling loop instruction [from HEAD]. --- diff --git a/crypto/perlasm/x86gas.pl b/crypto/perlasm/x86gas.pl index 4af871889a..682a3a3163 100644 --- a/crypto/perlasm/x86gas.pl +++ b/crypto/perlasm/x86gas.pl @@ -45,10 +45,8 @@ sub ::generic undef $suffix if ($dst =~ m/^%[xm]/o || $src =~ m/^%[xm]/o); if ($#_==0) { &::emit($opcode); } - elsif ($opcode =~ m/^j/o && $#_==1) { &::emit($opcode,@arg); } - elsif ($opcode eq "call" && $#_==1) { &::emit($opcode,@arg); } - elsif ($opcode eq "clflush" && $#_==1){ &::emit($opcode,@arg); } - elsif ($opcode =~ m/^set/&& $#_==1) { &::emit($opcode,@arg); } + elsif ($#_==1 && $opcode =~ m/^(call|clflush|j|loop|set)/o) + { &::emit($opcode,@arg); } else { &::emit($opcode.$suffix,@arg);} 1;