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

Deleted a rendundant mov.

Rev: src/nettle/sparc/aes.asm:1.31
parent 7aceb0b1
No related branches found
No related tags found
No related merge requests found
...@@ -95,11 +95,6 @@ _aes_crypt: ...@@ -95,11 +95,6 @@ _aes_crypt:
ld [ctx + AES_NROUNDS], nround ld [ctx + AES_NROUNDS], nround
mov 1, round mov 1, round
! mov %g2, %o7
! wtxt
mov wtxt, %g4
! 4*i: i ! 4*i: i
! This instruction copied to the delay slot of the branch here. ! This instruction copied to the delay slot of the branch here.
mov 0, i mov 0, i
...@@ -115,7 +110,7 @@ _aes_crypt: ...@@ -115,7 +110,7 @@ _aes_crypt:
! AES_SIDX2 ! AES_SIDX2
ld [%o2-16], %o4 ! 2 ld [%o2-16], %o4 ! 2
! wtxt[IDX1...] ! wtxt[IDX1...]
add %g4, %g3, %g3 ! 1 add wtxt, %g3, %g3 ! 1
ldub [%g3+2], %o0 ! 1 ldub [%g3+2], %o0 ! 1
! AES_SIDX3 ! AES_SIDX3
...@@ -123,15 +118,15 @@ _aes_crypt: ...@@ -123,15 +118,15 @@ _aes_crypt:
sll %o0, 2, %o0 ! 1 sll %o0, 2, %o0 ! 1
! wtxt[i] ! wtxt[i]
ld [%g4+i], %o5 ! 0 ld [wtxt+i], %o5 ! 0
! wtxt[IDX2...] ! wtxt[IDX2...]
lduh [%g4+%o4], %g3 ! 2 lduh [wtxt+%o4], %g3 ! 2
and %o5, 255, %o5 ! 0 and %o5, 255, %o5 ! 0
! wtxt[IDX3...] ! wtxt[IDX3...]
ldub [%g4+%g2], %o4 ! 3 ldub [wtxt+%g2], %o4 ! 3
sll %o5, 2, %o5 ! 0 sll %o5, 2, %o5 ! 0
add %o5, AES_TABLE0, %o5 ! 0 add %o5, AES_TABLE0, %o5 ! 0
...@@ -178,6 +173,7 @@ _aes_crypt: ...@@ -178,6 +173,7 @@ _aes_crypt:
cmp i, 3 cmp i, 3
xor %g3, %o5, %g3 xor %g3, %o5, %g3
st %g3, [wtxt+%g2] st %g3, [wtxt+%g2]
! st %g3, [tmp+%g2]
bleu .Lroundkey_loop bleu .Lroundkey_loop
add %o0, 4, %o0 add %o0, 4, %o0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment