From 4795774e235e9f35017bb898b3c610d7d270ad5f Mon Sep 17 00:00:00 2001 From: markus <> Date: Tue, 10 May 2005 14:03:22 +0000 Subject: import i386 AES asm code from openssl.org; ok and help with testing djm@ --- src/lib/libcrypto/perlasm/x86unix.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/perlasm/x86unix.pl') diff --git a/src/lib/libcrypto/perlasm/x86unix.pl b/src/lib/libcrypto/perlasm/x86unix.pl index 9717d18557..b61425e951 100644 --- a/src/lib/libcrypto/perlasm/x86unix.pl +++ b/src/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 -- cgit v1.2.3-55-g6feb