summaryrefslogtreecommitdiffstats
path: root/crypto/md5
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>1999-07-25 14:07:48 +0000
committerAndy Polyakov <appro@openssl.org>1999-07-25 14:07:48 +0000
commitccb8a026c0bb91c1904db1c12376239e67000196 (patch)
tree2a534cc82e8ea36049124ed12a60cf970ccfebe9 /crypto/md5
parentfccbb9b34f13b2d181db9a4714d92bc70c8c7ef0 (diff)
GNU assembler (read SPARC Linux) support added.
Diffstat (limited to 'crypto/md5')
-rw-r--r--crypto/md5/asm/md5-sparcv9.S28
1 files changed, 11 insertions, 17 deletions
diff --git a/crypto/md5/asm/md5-sparcv9.S b/crypto/md5/asm/md5-sparcv9.S
index 955b3680b5..ca4257f134 100644
--- a/crypto/md5/asm/md5-sparcv9.S
+++ b/crypto/md5/asm/md5-sparcv9.S
@@ -87,11 +87,17 @@
#endif
.section ".text",#alloc,#execinstr
+
#if defined(__SUNPRO_C) && defined(__sparcv9)
/* They've said -xarch=v9 at command line */
.register %g2,#scratch
.register %g3,#scratch
# define FRAME -192
+#elif defined(__GNUC__) && defined(__arch64__)
+ /* They've said -m64 at command line */
+ .register %g2,#scratch
+ .register %g3,#scratch
+# define FRAME -192
#else
# define FRAME -96
#endif
@@ -103,27 +109,15 @@ md5_block:
save %sp,FRAME,%sp
ld [Dptr],D
-#ifdef ASI_PRIMARY_LITTLE
- mov %asi,%o7 ! How dare I? Well, I just do:-)
-#else
- nop
-#endif
ld [Cptr],C
-#ifdef ASI_PRIMARY_LITTLE
- mov ASI_PRIMARY_LITTLE,%asi
-#else
- nop
-#endif
ld [Bptr],B
- nop
ld [Aptr],A
- nop
+#ifdef ASI_PRIMARY_LITTLE
+ rd %asi,%o7 ! How dare I? Well, I just do:-)
+ wr %g0,ASI_PRIMARY_LITTLE,%asi
+#endif
LOAD X(0),R0
- nop
- ba .Lmd5_block_loop
- nop
-.align 32
.Lmd5_block_loop:
!!!!!!!!Round 0
@@ -1026,7 +1020,7 @@ md5_block:
LOAD X(0),R0
#ifdef ASI_PRIMARY_LITTLE
- mov %o7,%asi
+ wr %g0,%o7,%asi
#endif
ret
restore %g0,0,%o0