summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/perlasm/x86unix.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/perlasm/x86unix.pl')
-rw-r--r--src/lib/libcrypto/perlasm/x86unix.pl10
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",@_); }
179sub main'call { &out1("call",($_[0]=~/^\.L/?'':$under).$_[0]); } 179sub main'call { &out1("call",($_[0]=~/^\.L/?'':$under).$_[0]); }
180sub main'ret { &out0("ret"); } 180sub main'ret { &out0("ret"); }
181sub main'nop { &out0("nop"); } 181sub main'nop { &out0("nop"); }
182sub main'test { &out2("testl",@_); }
182sub main'movz { &out2("movzbl",@_); } 183sub main'movz { &out2("movzbl",@_); }
184sub 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.
185sub main'bswap 187sub main'bswap
@@ -462,6 +464,12 @@ sub main'comment
462 } 464 }
463 } 465 }
464 466
467sub main'public_label
468 {
469 $label{$_[0]}="${under}${_[0]}" if (!defined($label{$_[0]}));
470 push(@out,".globl\t$label{$_[0]}\n");
471 }
472
465sub main'label 473sub main'label
466 { 474 {
467 if (!defined($label{$_[0]})) 475 if (!defined($label{$_[0]}))
@@ -498,7 +506,7 @@ sub main'file_end
498 506
499sub main'data_word 507sub 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