summaryrefslogtreecommitdiffstats
path: root/crypto/aes
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-07-26 21:48:39 +0000
committerAndy Polyakov <appro@openssl.org>2010-07-26 21:48:39 +0000
commit058d83cfe9eca7fb7ae0185eff70a5a6a1fe608b (patch)
tree25a4241a6ea6343b3f0d1002411e3b955228cf54 /crypto/aes
parenta9e790b95ae6e5ee0d884812db23962caa32279c (diff)
aes-x86_64.pl: remove redundant instructions.
Diffstat (limited to 'crypto/aes')
-rwxr-xr-xcrypto/aes/asm/aes-x86_64.pl12
1 files changed, 2 insertions, 10 deletions
diff --git a/crypto/aes/asm/aes-x86_64.pl b/crypto/aes/asm/aes-x86_64.pl
index a545e892ae..f2f62cdc99 100755
--- a/crypto/aes/asm/aes-x86_64.pl
+++ b/crypto/aes/asm/aes-x86_64.pl
@@ -1295,10 +1295,6 @@ AES_set_encrypt_key:
call _x86_64_AES_set_encrypt_key
- mov 8(%rsp),%r15
- mov 16(%rsp),%r14
- mov 24(%rsp),%r13
- mov 32(%rsp),%r12
mov 40(%rsp),%rbp
mov 48(%rsp),%rbx
add \$56,%rsp
@@ -1556,8 +1552,8 @@ $code.=<<___;
AES_set_decrypt_key:
push %rbx
push %rbp
- push %r12
- push %r13
+ push %r12 # redundant, but allows to share
+ push %r13 # exception handler...
push %r14
push %r15
push %rdx # save key schedule
@@ -1613,10 +1609,6 @@ $code.=<<___;
xor %rax,%rax
.Labort:
- mov 8(%rsp),%r15
- mov 16(%rsp),%r14
- mov 24(%rsp),%r13
- mov 32(%rsp),%r12
mov 40(%rsp),%rbp
mov 48(%rsp),%rbx
add \$56,%rsp