projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5711dd8
)
perlasm/x86gas.pl: give a hand old assemblers assembling loop instruction.
author
Andy Polyakov
<appro@openssl.org>
Fri, 9 Dec 2011 19:16:20 +0000
(19:16 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Fri, 9 Dec 2011 19:16:20 +0000
(19:16 +0000)
crypto/perlasm/x86gas.pl
patch
|
blob
|
history
diff --git
a/crypto/perlasm/x86gas.pl
b/crypto/perlasm/x86gas.pl
index 4af871889a756cb38c2eb0d985dea30928ea2279..682a3a3163e2566c7b849cd7cd1ece10cd7b6aef 100644
(file)
--- 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); }
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;
else { &::emit($opcode.$suffix,@arg);}
1;