diff options
| author | markus <> | 2005-05-10 14:03:22 +0000 |
|---|---|---|
| committer | markus <> | 2005-05-10 14:03:22 +0000 |
| commit | 4795774e235e9f35017bb898b3c610d7d270ad5f (patch) | |
| tree | 666a56e4927716dbfa246d4e42284284bd509b82 /src/lib/libcrypto/perlasm/x86unix.pl | |
| parent | 1e8202a4c8cbeba223d0b0dc54fd1d84ffc48e40 (diff) | |
| download | openbsd-4795774e235e9f35017bb898b3c610d7d270ad5f.tar.gz openbsd-4795774e235e9f35017bb898b3c610d7d270ad5f.tar.bz2 openbsd-4795774e235e9f35017bb898b3c610d7d270ad5f.zip | |
import i386 AES asm code from openssl.org; ok and help with testing djm@
Diffstat (limited to 'src/lib/libcrypto/perlasm/x86unix.pl')
| -rw-r--r-- | src/lib/libcrypto/perlasm/x86unix.pl | 10 |
1 files changed, 9 insertions, 1 deletions
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",@_); } | |||
| 179 | sub main'call { &out1("call",($_[0]=~/^\.L/?'':$under).$_[0]); } | 179 | sub main'call { &out1("call",($_[0]=~/^\.L/?'':$under).$_[0]); } |
| 180 | sub main'ret { &out0("ret"); } | 180 | sub main'ret { &out0("ret"); } |
| 181 | sub main'nop { &out0("nop"); } | 181 | sub main'nop { &out0("nop"); } |
| 182 | sub main'test { &out2("testl",@_); } | ||
| 182 | sub main'movz { &out2("movzbl",@_); } | 183 | sub main'movz { &out2("movzbl",@_); } |
| 184 | sub main'neg { &out1("negl",@_); } | ||
| 183 | 185 | ||
| 184 | # The bswapl instruction is new for the 486. Emulate if i386. | 186 | # The bswapl instruction is new for the 486. Emulate if i386. |
| 185 | sub main'bswap | 187 | sub main'bswap |
| @@ -462,6 +464,12 @@ sub main'comment | |||
| 462 | } | 464 | } |
| 463 | } | 465 | } |
| 464 | 466 | ||
| 467 | sub main'public_label | ||
| 468 | { | ||
| 469 | $label{$_[0]}="${under}${_[0]}" if (!defined($label{$_[0]})); | ||
| 470 | push(@out,".globl\t$label{$_[0]}\n"); | ||
| 471 | } | ||
| 472 | |||
| 465 | sub main'label | 473 | sub main'label |
| 466 | { | 474 | { |
| 467 | if (!defined($label{$_[0]})) | 475 | if (!defined($label{$_[0]})) |
| @@ -498,7 +506,7 @@ sub main'file_end | |||
| 498 | 506 | ||
| 499 | sub main'data_word | 507 | sub main'data_word |
| 500 | { | 508 | { |
| 501 | push(@out,"\t.long $_[0]\n"); | 509 | push(@out,"\t.long\t".join(',',@_)."\n"); |
| 502 | } | 510 | } |
| 503 | 511 | ||
| 504 | # debug output functions: puts, putx, printf | 512 | # debug output functions: puts, putx, printf |
