diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-01-18 14:54:20 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-01-18 14:54:20 +0000 |
commit | ac381944ac3e8970f40e7eb3fc528e58dcca9d4d (patch) | |
tree | 7c75bf30d6eefe157b91dc8a1bd9c8d2d1c7c2db | |
parent | 24fadf2a20f50d5623f61f2cc08f95c22b5ba75c (diff) |
give a hand old assemblers assembling loop instruction. (original by Andy)
-rw-r--r-- | crypto/perlasm/x86gas.pl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/perlasm/x86gas.pl b/crypto/perlasm/x86gas.pl index d0b7ae27ae..263182b985 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; |