Skip to content
Snippets Groups Projects
Commit 65346ce4 authored by Niels Möller's avatar Niels Möller
Browse files

(aes_encrypt): Cut off redundant instruction per block, also

saving one redundant register pointing to idx.

Rev: src/nettle/sparc/aes.asm:1.8
parent 5c254ae3
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ key_addition_8to32: ...@@ -36,7 +36,7 @@ key_addition_8to32:
mov 0, %o3 mov 0, %o3
.Lshiftloop: .Lshiftloop:
ldub [%o0], %g3 ldub [%o0], %g3
! %g2 = 0 << 3. FIXME: Delete ! %g2 = j << 3
sll %o3, 3, %g2 sll %o3, 3, %g2
! %g3 << 0 ! %g3 << 0
sll %g3, %g2, %g3 sll %g3, %g2, %g3
...@@ -206,14 +206,14 @@ aes_encrypt: ...@@ -206,14 +206,14 @@ aes_encrypt:
mov txt, %l4 mov txt, %l4
mov wtxt, %l0 mov wtxt, %l0
! FIXME: %l7 = idx, seems redundant? ! FIXME: %l7 = idx, seems redundant?
or %i4, %lo(idx), %l7 ! or %i4, %lo(idx), %l7
add ctx, 16, %l2 add ctx, 16, %l2
.Lencrypt_round: .Lencrypt_round:
! j: %o7 ! j: %o7
! 4j: %g2 ! 4j: %g2
mov 0, %o7 mov 0, %o7
! %g3 = &idx[3][0] ! %g3 = &idx[3][0]
add %l7, 48, %g3 add g_idx, 48, %g3
.Lencrypt_inner: .Lencrypt_inner:
! %o0 = idx[3][0] ! %o0 = idx[3][0]
ld [%g3], %o0 ld [%g3], %o0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment