Skip to content

Commit 1f5ff37

Browse files
committed
poly_tomont ppc64le: restore full generated body
The two prior hand-edits of the generated mlkem/ copy dropped one of the four unrolled iterations. This restores the byte-for-byte simpasm output; the only change from main is the frame trim (320->224) and the matching save/restore set. No functional change to the assembly.
1 parent 15c3441 commit 1f5ff37

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

mlkem/src/native/ppc64le/src/poly_tomont_ppc_asm.S

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,54 @@ MLK_ASM_FN_SYMBOL(poly_tomont_ppc_asm)
200200
stxvd2x 50, 9, 3
201201
stxvd2x 55, 10, 3
202202
stxvd2x 39, 11, 3
203+
lxvd2x 45, 0, 3
204+
addi 3, 3, 16
205+
lxvd2x 50, 0, 3
206+
addi 3, 3, 16
207+
lxvd2x 55, 0, 3
208+
addi 3, 3, 16
209+
lxvd2x 39, 0, 3
210+
addi 3, 3, 16
211+
vmhraddshs 14, 13, 2, 3
212+
vmhraddshs 19, 18, 2, 3
213+
vmhraddshs 24, 23, 2, 3
214+
vmhraddshs 8, 7, 2, 3
215+
vmladduhm 13, 13, 0, 3
216+
vmladduhm 18, 18, 0, 3
217+
vmladduhm 23, 23, 0, 3
218+
vmladduhm 7, 7, 0, 3
219+
vmladduhm 27, 14, 5, 13
220+
vmladduhm 28, 19, 5, 18
221+
vmladduhm 29, 24, 5, 23
222+
vmladduhm 30, 8, 5, 7
223+
lxvd2x 45, 0, 3
224+
addi 3, 3, 16
225+
lxvd2x 50, 0, 3
226+
addi 3, 3, 16
227+
lxvd2x 55, 0, 3
228+
addi 3, 3, 16
229+
lxvd2x 39, 0, 3
230+
addi 3, 3, 16
231+
vmhraddshs 14, 13, 2, 3
232+
vmhraddshs 19, 18, 2, 3
233+
vmhraddshs 24, 23, 2, 3
234+
vmhraddshs 8, 7, 2, 3
235+
vmladduhm 13, 13, 0, 3
236+
vmladduhm 18, 18, 0, 3
237+
vmladduhm 23, 23, 0, 3
238+
vmladduhm 7, 7, 0, 3
239+
vmladduhm 13, 14, 5, 13
240+
vmladduhm 18, 19, 5, 18
241+
vmladduhm 23, 24, 5, 23
242+
vmladduhm 7, 8, 5, 7
243+
stxvd2x 59, 4, 3
244+
stxvd2x 60, 5, 3
245+
stxvd2x 61, 6, 3
246+
stxvd2x 62, 7, 3
247+
stxvd2x 45, 8, 3
248+
stxvd2x 50, 9, 3
249+
stxvd2x 55, 10, 3
250+
stxvd2x 39, 11, 3
203251
li 6, 128
204252
li 7, 144
205253
li 8, 160

0 commit comments

Comments
 (0)