summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2005-05-10 14:03:23 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2005-05-10 14:03:23 +0000
commit1f5784a9a08a781bb51d8af8d083cc0f8b630c9a (patch)
treef32aa7d9e64a4a197d794b92e59457e99aee7c83 /lib
parentd547da53434927bbcac7f0306aac740978d234e9 (diff)
import i386 AES asm code from openssl.org; ok and help with testing djm@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/perlasm/x86unix.pl10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libcrypto/perlasm/x86unix.pl b/lib/libcrypto/perlasm/x86unix.pl
index 9717d185579..b61425e9519 100644
--- a/lib/libcrypto/perlasm/x86unix.pl
+++ b/lib/libcrypto/perlasm/x86unix.pl
@@ -179,7 +179,9 @@ sub main'not { &out1("notl",@_); }
sub main'call { &out1("call",($_[0]=~/^\.L/?'':$under).$_[0]); }
sub main'ret { &out0("ret"); }
sub main'nop { &out0("nop"); }
+sub main'test { &out2("testl",@_); }
sub main'movz { &out2("movzbl",@_); }
+sub main'neg { &out1("negl",@_); }
# The bswapl instruction is new for the 486. Emulate if i386.
sub main'bswap
@@ -462,6 +464,12 @@ sub main'comment
}
}
+sub main'public_label
+ {
+ $label{$_[0]}="${under}${_[0]}" if (!defined($label{$_[0]}));
+ push(@out,".globl\t$label{$_[0]}\n");
+ }
+
sub main'label
{
if (!defined($label{$_[0]}))
@@ -498,7 +506,7 @@ sub main'file_end
sub main'data_word
{
- push(@out,"\t.long $_[0]\n");
+ push(@out,"\t.long\t".join(',',@_)."\n");
}
# debug output functions: puts, putx, printf