GNU assembler (read SPARC Linux) support added.
This commit is contained in:
parent
fccbb9b34f
commit
ccb8a026c0
@ -87,11 +87,17 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
.section ".text",#alloc,#execinstr
|
.section ".text",#alloc,#execinstr
|
||||||
|
|
||||||
#if defined(__SUNPRO_C) && defined(__sparcv9)
|
#if defined(__SUNPRO_C) && defined(__sparcv9)
|
||||||
/* They've said -xarch=v9 at command line */
|
/* They've said -xarch=v9 at command line */
|
||||||
.register %g2,#scratch
|
.register %g2,#scratch
|
||||||
.register %g3,#scratch
|
.register %g3,#scratch
|
||||||
# define FRAME -192
|
# 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
|
#else
|
||||||
# define FRAME -96
|
# define FRAME -96
|
||||||
#endif
|
#endif
|
||||||
@ -103,27 +109,15 @@ md5_block:
|
|||||||
save %sp,FRAME,%sp
|
save %sp,FRAME,%sp
|
||||||
|
|
||||||
ld [Dptr],D
|
ld [Dptr],D
|
||||||
#ifdef ASI_PRIMARY_LITTLE
|
|
||||||
mov %asi,%o7 ! How dare I? Well, I just do:-)
|
|
||||||
#else
|
|
||||||
nop
|
|
||||||
#endif
|
|
||||||
ld [Cptr],C
|
ld [Cptr],C
|
||||||
#ifdef ASI_PRIMARY_LITTLE
|
|
||||||
mov ASI_PRIMARY_LITTLE,%asi
|
|
||||||
#else
|
|
||||||
nop
|
|
||||||
#endif
|
|
||||||
ld [Bptr],B
|
ld [Bptr],B
|
||||||
nop
|
|
||||||
ld [Aptr],A
|
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
|
LOAD X(0),R0
|
||||||
nop
|
|
||||||
ba .Lmd5_block_loop
|
|
||||||
nop
|
|
||||||
|
|
||||||
.align 32
|
|
||||||
.Lmd5_block_loop:
|
.Lmd5_block_loop:
|
||||||
|
|
||||||
!!!!!!!!Round 0
|
!!!!!!!!Round 0
|
||||||
@ -1026,7 +1020,7 @@ md5_block:
|
|||||||
LOAD X(0),R0
|
LOAD X(0),R0
|
||||||
|
|
||||||
#ifdef ASI_PRIMARY_LITTLE
|
#ifdef ASI_PRIMARY_LITTLE
|
||||||
mov %o7,%asi
|
wr %g0,%o7,%asi
|
||||||
#endif
|
#endif
|
||||||
ret
|
ret
|
||||||
restore %g0,0,%o0
|
restore %g0,0,%o0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user