Commit 88d4e338 by Niels Möller

### (AES_ROUND): Reordered instructions, so that we can save one

register.

Rev: src/nettle/sparc/aes.asm:1.104
parent 4dd2c39b
 ... @@ -74,30 +74,28 @@ C The code uses the register %o[j], aka tj, as the primary ... @@ -74,30 +74,28 @@ C The code uses the register %o[j], aka tj, as the primary C register for that sub-expression. True for j==1,3. C register for that sub-expression. True for j==1,3. define(, < define(, < ld [IDX1+\$1], t1 ! 1 ld [IDX1+\$1], t1 ! 1 ldub [wtxt+\$1+3], t0 ! 0 ldub [wtxt+t1], t1 ! 1 ldub [wtxt+t1], t1 ! 1 ld [IDX3+\$1], t3 ! 3 sll t0, 2, t0 ! 0 ld [T0+t0], t0 ! 0 sll t1, 2, t1 ! 1 sll t1, 2, t1 ! 1 ldub [wtxt+\$1+3], t0 ! 0 ld [T1+t1], t1 ! 1 ld [IDX3+\$1], t3 ! 3 xor t0, t1, t0 ! 0, 1 ! IDX2(j) = j XOR 2 ! IDX2(j) = j XOR 2 ldub [wtxt+eval(\$1 ^ 8)+1], t2 ! 2 ldub [wtxt+eval(\$1 ^ 8)+1], t2 ! 2 ldub [wtxt+t3], t3 ! 3 ldub [wtxt+t3], t3 ! 3 sll t0, 2, t0 ! 0 ld [T0+t0], t0 ! 0 ld [T1+t1], t1 ! 1 sll t2, 2, t2 ! 2 sll t2, 2, t2 ! 2 ld [T2+t2], t2 ! 2 ld [T2+t2], t2 ! 2 sll t3, 2, t3 ! 3 sll t3, 2, t3 ! 3 ld [T3+t3], t3 ! 3 ld [T3+t3], t3 ! 3 xor t0, t1, t0 ! 0, 1 xor t0, t2, t0 ! 0, 1, 2 xor t0, t2, t0 ! 0, 1, 2 ! Fetch roundkey ! Fetch roundkey ld [key + \$1], t1 ld [key + \$1], t1 xor t0, t3, t0 ! 0, 1, 2, 3 xor t0, t3, t0 ! 0, 1, 2, 3 xor t0, t1, t0 xor t0, t1, t0 st t0, [tmp + \$1]>)dnl st t0, [tmp + \$1]>)dnl ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!