ARM 32-bit ASM AES: fixup 32-bit code to not use B.EQ

Changes made for Green Hills Aarch64 got into the 32-bit code.
This commit is contained in:
Sean Parkinson
2025-07-04 11:37:06 +10:00
parent fb691fac94
commit d1893dbdec

View File

@@ -22274,7 +22274,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"MOV r12, %[R] \n"
"CMP r12, #10 \n"
"B.EQ 1f \n"
"BEQ 1f \n"
"VLD1.32 {q1}, [%[Key]]! \n"
"AESMC.8 q0, q0\n"
"VLD1.32 {q2}, [%[Key]]! \n"
@@ -22283,7 +22283,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"AESE.8 q0, q2\n"
"CMP r12, #12 \n"
"B.EQ 1f \n"
"BEQ 1f \n"
"VLD1.32 {q1}, [%[Key]]! \n"
"AESMC.8 q0, q0\n"
"VLD1.32 {q2}, [%[Key]]! \n"
@@ -22350,7 +22350,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"MOV r12, %[R] \n"
"CMP r12, #10 \n"
"B.EQ 1f \n"
"BEQ 1f \n"
"VLD1.32 {q1}, [%[Key]]! \n"
"AESIMC.8 q0, q0\n"
"VLD1.32 {q2}, [%[Key]]! \n"
@@ -22359,7 +22359,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"AESD.8 q0, q2\n"
"CMP r12, #12 \n"
"B.EQ 1f \n"
"BEQ 1f \n"
"VLD1.32 {q1}, [%[Key]]! \n"
"AESIMC.8 q0, q0\n"
"VLD1.32 {q2}, [%[Key]]! \n"
@@ -22462,7 +22462,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"VST1.32 {q0}, [%[out]]! \n"
"CMP r11, #0 \n"
"B.EQ 2f \n"
"BEQ 2f \n"
"VLD1.32 {q12}, [%[input]]! \n"
"B 1b \n"
@@ -22529,7 +22529,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"VST1.32 {q0}, [%[out]]! \n"
"CMP r11, #0 \n"
"B.EQ 2f \n"
"BEQ 2f \n"
"VLD1.32 {q12}, [%[input]]! \n"
"B 1b \n"
@@ -22603,7 +22603,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"SUB %[Key], %[Key], #16 \n"
"CMP r11, #0 \n"
"B.EQ 2f \n"
"BEQ 2f \n"
"VLD1.32 {q12}, [%[input]]! \n"
"B 1b \n"
@@ -22701,7 +22701,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"VMOV.32 q13, q12 \n"
"CMP r11, #0 \n"
"B.EQ 2f \n"
"BEQ 2f \n"
"VLD1.32 {q0}, [%[input]]! \n"
"B 1b \n"
@@ -22770,7 +22770,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"VMOV.32 q14, q15 \n"
"CMP r11, #0 \n"
"B.EQ 2f \n"
"BEQ 2f \n"
"VLD1.32 {q0}, [%[input]]! \n"
"B 1b \n"
@@ -22846,7 +22846,7 @@ int AES_GCM_decrypt_AARCH64(Aes* aes, byte* out, const byte* in, word32 sz,
"VMOV.32 q14, q15 \n"
"CMP r11, #0 \n"
"B.EQ 2f \n"
"BEQ 2f \n"
"VLD1.32 {q0}, [%[input]]! \n"
"B 1b \n"