Skip to content

Commit

Permalink
add initial test run of Keccak on A55
Browse files Browse the repository at this point in the history
  • Loading branch information
mkannwischer committed Jul 9, 2024
1 parent a9a3f40 commit c69030c
Show file tree
Hide file tree
Showing 3 changed files with 3,045 additions and 3,041 deletions.
14 changes: 7 additions & 7 deletions tests/keccak_neon/manual/keccak_f1600_x4_hybrid_slothy.s
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
// Author: Matthias Kannwischer <[email protected]>
//

.macro asm_load dst, addr // @slothy:no-unfold
ASM_LOAD(\dst, \addr)
.macro asm_load dst // @slothy:no-unfold
ASM_LOAD(\dst, round_constants)
.endm

/********************** CONSTANTS *************************/
Expand Down Expand Up @@ -502,7 +502,7 @@ round_constants:
eor sAme_, sAga, sE0
eor sAbe_, sAge, sE1

asm_load const_addr, round_constants
asm_load const_addr

bic tmp, sAgi_, sAge_, ror #47
eor sAga, tmp, sAga_, ror #39
Expand Down Expand Up @@ -619,7 +619,7 @@ round_constants:
eor sAme_, sE0, sAga, ror #61
eor sAbe_, sE1, sAge, ror #19

asm_load const_addr, round_constants
asm_load const_addr
ldr count, [sp, #STACK_OFFSET_COUNT] // @slothy:reads=STACK_OFFSET_COUNT

bic tmp, sAgi_, sAge_, ror #47
Expand Down Expand Up @@ -816,7 +816,7 @@ round_constants:
eor sAme_, sE0, sAga, ror #61
eor sAbe_, sE1, sAge, ror #19

asm_load const_addr, round_constants
asm_load const_addr
ldr count, [sp, #STACK_OFFSET_COUNT] // @slothy:reads=STACK_OFFSET_COUNT

bic tmp, sAgi_, sAge_, ror #47
Expand Down Expand Up @@ -933,7 +933,7 @@ round_constants:
eor sAme_, sE0, sAga, ror #61
eor sAbe_, sE1, sAge, ror #19

asm_load const_addr, round_constants
asm_load const_addr
ldr count, [sp, #STACK_OFFSET_COUNT] // @slothy:reads=STACK_OFFSET_COUNT

bic tmp, sAgi_, sAge_, ror #47
Expand Down Expand Up @@ -1111,7 +1111,7 @@ _keccak_f1600_x4_hybrid_slothy:

load_input_vector 2,1

asm_load const_addr, round_constants
asm_load const_addr
str const_addr, [sp, #STACK_OFFSET_CONST] // @slothy:writes=STACK_OFFSET_CONST

// First scalar Keccak computation alongside first half of SIMD computation
Expand Down
Loading

0 comments on commit c69030c

Please sign in to comment.