projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPARCv9 assembly pack: unify build rules and argument handling.
[openssl.git]
/
crypto
/
bn
/
asm
/
vis3-mont.pl
diff --git
a/crypto/bn/asm/vis3-mont.pl
b/crypto/bn/asm/vis3-mont.pl
index 8bab5a16b638d4cbe0f82c3a4ea1b3726a3f4cec..7b953a2be040ab1016600bad40cbe87b2f00ebd8 100644
(file)
--- a/
crypto/bn/asm/vis3-mont.pl
+++ b/
crypto/bn/asm/vis3-mont.pl
@@
-21,16
+21,17
@@
$output = pop;
open STDOUT,">$output";
$output = pop;
open STDOUT,">$output";
-$bits=32;
-for (@ARGV) { $bits=64 if (/\-m64/ || /\-xarch\=v9/); }
-if ($bits==64) { $bias=2047; $frame=192; }
-else { $bias=0; $frame=112; }
+$frame = "STACK_FRAME";
+$bias = "STACK_BIAS";
-$code.=<<___ if ($bits==64);
+$code.=<<___;
+#include "sparc_arch.h"
+
+#ifdef __arch64__
.register %g2,#scratch
.register %g3,#scratch
.register %g2,#scratch
.register %g3,#scratch
-___
-$code.=<<___;
+#endif
+
.section ".text",#alloc,#execinstr
___
.section ".text",#alloc,#execinstr
___