Lines Matching refs:t
62 my @t=map("r$_",(8..11));
70 my ($xc,$xc_) = (@t[0..1]);
71 my ($xd,$xd_) = $odd ? (@t[2],@x[$d1]) : (@x[$d0],@t[2]);
251 str @t[3],[sp,#4*(32+2)] @ save len
255 ldr @t[3], [sp,#4*(15)]
257 ldr @t[2], [sp,#4*(13)]
259 str @t[3], [sp,#4*(16+15)]
260 mov @t[3],#10
265 subs @t[3],@t[3],#1
272 ldr @t[3],[sp,#4*(32+2)] @ load len
274 str @t[0], [sp,#4*(16+8)] @ modulo-scheduled store
275 str @t[1], [sp,#4*(16+9)]
277 str @t[2], [sp,#4*(16+13)]
283 cmp @t[3],#64 @ done yet?
292 ldr @t[0],[sp,#4*(0)] @ load key material
293 ldr @t[1],[sp,#4*(1)]
297 orr @t[2],r12,r14
298 tst @t[2],#3 @ are input and output aligned?
299 ldr @t[2],[sp,#4*(2)]
301 cmp @t[3],#64 @ restore flags
303 ldr @t[2],[sp,#4*(2)]
305 ldr @t[3],[sp,#4*(3)]
307 add @x[0],@x[0],@t[0] @ accumulate key material
308 add @x[1],@x[1],@t[1]
312 ldrhs @t[0],[r12],#16 @ load input
313 ldrhs @t[1],[r12,#-12]
315 add @x[2],@x[2],@t[2]
316 add @x[3],@x[3],@t[3]
320 ldrhs @t[2],[r12,#-8]
321 ldrhs @t[3],[r12,#-4]
331 eorhs @x[0],@x[0],@t[0] @ xor with input
332 eorhs @x[1],@x[1],@t[1]
333 add @t[0],sp,#4*(4)
338 eorhs @x[2],@x[2],@t[2]
339 eorhs @x[3],@x[3],@t[3]
340 ldmia @t[0],{@t[0]-@t[3]} @ load key material
345 add @x[4],@x[4],@t[0] @ accumulate key material
346 add @x[5],@x[5],@t[1]
350 ldrhs @t[0],[r12],#16 @ load input
351 ldrhs @t[1],[r12,#-12]
352 add @x[6],@x[6],@t[2]
353 add @x[7],@x[7],@t[3]
357 ldrhs @t[2],[r12,#-8]
358 ldrhs @t[3],[r12,#-4]
368 eorhs @x[4],@x[4],@t[0]
369 eorhs @x[5],@x[5],@t[1]
370 add @t[0],sp,#4*(8)
375 eorhs @x[6],@x[6],@t[2]
376 eorhs @x[7],@x[7],@t[3]
378 ldmia @t[0],{@t[0]-@t[3]} @ load key material
385 add @x[0],@x[0],@t[0] @ accumulate key material
386 add @x[1],@x[1],@t[1]
390 ldrhs @t[0],[r12],#16 @ load input
391 ldrhs @t[1],[r12,#-12]
395 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]" while at it
396 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]" while at it
397 add @x[2],@x[2],@t[2]
398 add @x[3],@x[3],@t[3]
402 ldrhs @t[2],[r12,#-8]
403 ldrhs @t[3],[r12,#-4]
413 eorhs @x[0],@x[0],@t[0]
414 eorhs @x[1],@x[1],@t[1]
415 add @t[0],sp,#4*(12)
420 eorhs @x[2],@x[2],@t[2]
421 eorhs @x[3],@x[3],@t[3]
423 ldmia @t[0],{@t[0]-@t[3]} @ load key material
427 add @x[4],@x[4],@t[0] @ accumulate key material
428 add @x[5],@x[5],@t[1]
432 addhi @t[0],@t[0],#1 @ next counter value
433 strhi @t[0],[sp,#4*(12)] @ save next counter value
437 ldrhs @t[0],[r12],#16 @ load input
438 ldrhs @t[1],[r12,#-12]
439 add @x[6],@x[6],@t[2]
440 add @x[7],@x[7],@t[3]
444 ldrhs @t[2],[r12,#-8]
445 ldrhs @t[3],[r12,#-4]
455 eorhs @x[4],@x[4],@t[0]
456 eorhs @x[5],@x[5],@t[1]
460 ldrne @t[0],[sp,#4*(32+2)] @ re-load len
464 eorhs @x[6],@x[6],@t[2]
465 eorhs @x[7],@x[7],@t[3]
471 subhs @t[3],@t[0],#64 @ len-=64
482 cmp @t[3],#64 @ restore flags
486 ldr @t[3],[sp,#4*(3)]
499 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]"
500 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]"
503 add @x[$j+0],@x[$j+0],@t[0] @ accumulate key material
509 addhi @t[0],@t[0],#1 @ next counter value
510 strhi @t[0],[sp,#4*(12)] @ save next counter value
513 add @x[$j+1],@x[$j+1],@t[1]
514 add @x[$j+2],@x[$j+2],@t[2]
518 eorlo @t[0],@t[0],@t[0] @ zero or ...
519 ldrhsb @t[0],[r12],#16 @ ... load input
520 eorlo @t[1],@t[1],@t[1]
521 ldrhsb @t[1],[r12,#-12]
523 add @x[$j+3],@x[$j+3],@t[3]
527 eorlo @t[2],@t[2],@t[2]
528 ldrhsb @t[2],[r12,#-8]
529 eorlo @t[3],@t[3],@t[3]
530 ldrhsb @t[3],[r12,#-4]
532 eor @x[$j+0],@t[0],@x[$j+0] @ xor with input (or zero)
533 eor @x[$j+1],@t[1],@x[$j+1]
537 ldrhsb @t[0],[r12,#-15] @ load more input
538 ldrhsb @t[1],[r12,#-11]
539 eor @x[$j+2],@t[2],@x[$j+2]
541 eor @x[$j+3],@t[3],@x[$j+3]
545 ldrhsb @t[2],[r12,#-7]
546 ldrhsb @t[3],[r12,#-3]
548 eor @x[$j+0],@t[0],@x[$j+0],lsr#8
550 eor @x[$j+1],@t[1],@x[$j+1],lsr#8
554 ldrhsb @t[0],[r12,#-14] @ load more input
555 ldrhsb @t[1],[r12,#-10]
557 eor @x[$j+2],@t[2],@x[$j+2],lsr#8
559 eor @x[$j+3],@t[3],@x[$j+3],lsr#8
563 ldrhsb @t[2],[r12,#-6]
564 ldrhsb @t[3],[r12,#-2]
566 eor @x[$j+0],@t[0],@x[$j+0],lsr#8
568 eor @x[$j+1],@t[1],@x[$j+1],lsr#8
572 ldrhsb @t[0],[r12,#-13] @ load more input
573 ldrhsb @t[1],[r12,#-9]
575 eor @x[$j+2],@t[2],@x[$j+2],lsr#8
577 eor @x[$j+3],@t[3],@x[$j+3],lsr#8
581 ldrhsb @t[2],[r12,#-5]
582 ldrhsb @t[3],[r12,#-1]
585 eor @x[$j+0],@t[0],@x[$j+0],lsr#8
587 eor @x[$j+1],@t[1],@x[$j+1],lsr#8
589 eor @x[$j+2],@t[2],@x[$j+2],lsr#8
591 eor @x[$j+3],@t[3],@x[$j+3],lsr#8
596 add @t[0],sp,#4*(4+$i)
597 ldmia @t[0],{@t[0]-@t[3]} @ load key material
604 ldrne @t[0],[sp,#4*(32+2)] @ re-load len
608 subhs @t[3],@t[0],#64 @ len-=64
616 add @t[1],sp,#4*(0)
620 ldrb @t[2],[@t[1]],#1 @ read buffer on stack
621 ldrb @t[3],[r12],#1 @ read input
622 subs @t[0],@t[0],#1
623 eor @t[3],@t[3],@t[2]
624 strb @t[3],[r14],#1 @ store output
640 my ($a,$b,$c,$d,$t)=@_;
648 "&veor ($t,$b,$c)",
649 "&vshr_u32 ($b,$t,20)",
650 "&vsli_32 ($b,$t,12)",
653 "&veor ($t,$d,$a)",
654 "&vshr_u32 ($d,$t,24)",
655 "&vsli_32 ($d,$t,8)",
658 "&veor ($t,$b,$c)",
659 "&vshr_u32 ($b,$t,25)",
660 "&vsli_32 ($b,$t,7)",
711 cmp @t[3],#64*2 @ if len<=64*2
714 str @t[3],[sp,#4*(32+2)] @ save len
721 ldr @t[3], [sp,#4*(15)]
725 ldr @t[2], [sp,#4*(13)]
729 str @t[3], [sp,#4*(16+15)]
730 mov @t[3],#10
736 subs @t[3],@t[3],#1
762 add @t[3],sp,#32
764 vld1.32 {$t2-$t3},[@t[3]]
766 ldr @t[3],[sp,#4*(32+2)] @ load len
768 str @t[0], [sp,#4*(16+8)] @ modulo-scheduled store
769 str @t[1], [sp,#4*(16+9)]
771 str @t[2], [sp,#4*(16+13)]
800 cmp @t[3],#64*4
804 mov @t[3],sp
823 vld1.32 {$a0-$b0},[@t[3]]! @ load for next iteration
827 vld1.32 {$c0-$d0},[@t[3]]
836 ldmia sp,{@t[0]-@t[3]} @ load key material
837 add @x[0],@x[0],@t[0] @ accumulate key material
838 ldr @t[0],[r12],#16 @ load input
840 add @x[1],@x[1],@t[1]
841 ldr @t[1],[r12,#-12]
843 add @x[2],@x[2],@t[2]
844 ldr @t[2],[r12,#-8]
845 add @x[3],@x[3],@t[3]
846 ldr @t[3],[r12,#-4]
853 eor @x[0],@x[0],@t[0] @ xor with input
854 add @t[0],sp,#4*(4)
855 eor @x[1],@x[1],@t[1]
857 eor @x[2],@x[2],@t[2]
859 eor @x[3],@x[3],@t[3]
860 ldmia @t[0],{@t[0]-@t[3]} @ load key material
864 add @x[4],@x[4],@t[0] @ accumulate key material
865 ldr @t[0],[r12],#16 @ load input
866 add @x[5],@x[5],@t[1]
867 ldr @t[1],[r12,#-12]
868 add @x[6],@x[6],@t[2]
869 ldr @t[2],[r12,#-8]
870 add @x[7],@x[7],@t[3]
871 ldr @t[3],[r12,#-4]
878 eor @x[4],@x[4],@t[0]
879 add @t[0],sp,#4*(8)
880 eor @x[5],@x[5],@t[1]
882 eor @x[6],@x[6],@t[2]
884 eor @x[7],@x[7],@t[3]
885 ldmia @t[0],{@t[0]-@t[3]} @ load key material
892 add @x[0],@x[0],@t[0] @ accumulate key material
893 ldr @t[0],[r12],#16 @ load input
894 add @x[1],@x[1],@t[1]
895 ldr @t[1],[r12,#-12]
899 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]" while at it
900 add @x[2],@x[2],@t[2]
901 ldr @t[2],[r12,#-8]
905 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]" while at it
906 add @x[3],@x[3],@t[3]
907 ldr @t[3],[r12,#-4]
914 eor @x[0],@x[0],@t[0]
915 add @t[0],sp,#4*(12)
916 eor @x[1],@x[1],@t[1]
918 eor @x[2],@x[2],@t[2]
920 eor @x[3],@x[3],@t[3]
921 ldmia @t[0],{@t[0]-@t[3]} @ load key material
925 add @x[4],@x[4],@t[0] @ accumulate key material
926 add @t[0],@t[0],#4 @ next counter value
927 add @x[5],@x[5],@t[1]
928 str @t[0],[sp,#4*(12)] @ save next counter value
929 ldr @t[0],[r12],#16 @ load input
930 add @x[6],@x[6],@t[2]
932 ldr @t[1],[r12,#-12]
933 add @x[7],@x[7],@t[3]
934 ldr @t[2],[r12,#-8]
935 ldr @t[3],[r12,#-4]
942 eor @x[4],@x[4],@t[0]
946 ldrhi @t[0],[sp,#4*(32+2)] @ re-load len
947 eor @x[5],@x[5],@t[1]
948 eor @x[6],@x[6],@t[2]
950 eor @x[7],@x[7],@t[3]
952 sub @t[3],@t[0],#64*4 @ len-=64*4
965 str @t[3], [sp,#4*(20+32+2)] @ save len
966 add @t[3],sp,#4*(32+4)
972 vldmia @t[3],{d8-d15} @ fulfill ABI requirement
976 ldr @t[3], [sp,#4*(15)]
978 ldr @t[2], [sp,#4*(13)]
980 str @t[3], [sp,#4*(20+16+15)]
981 add @t[3],sp,#4*(20)
982 vst1.32 {$a0-$b0},[@t[3]]! @ copy key
984 vst1.32 {$c0-$d0},[@t[3]]
985 mov @t[3],#10
990 cmp @t[3],#64*3
992 cmp @t[3],#64*2
994 cmp @t[3],#64*1
997 add @t[0],sp,#4*(8)
999 add @t[2],sp,#4*(0)
1000 vst1.8 {$c0-$d0},[@t[0]]
1016 add @t[0],sp,#4*(8)
1018 add @t[2],sp,#4*(0)
1019 vst1.8 {$c1-$d1},[@t[0]]
1020 sub @t[3],@t[3],#64*1 @ len-=64*1
1045 add @t[0],sp,#4*(8)
1047 add @t[2],sp,#4*(0)
1048 vst1.8 {$c2-$d2},[@t[0]]
1049 sub @t[3],@t[3],#64*2 @ len-=64*2
1083 ldmia sp,{@t[0]-@t[3]} @ load key material
1084 add @x[0],@x[0],@t[0] @ accumulate key material
1085 add @t[0],sp,#4*(4)
1086 add @x[1],@x[1],@t[1]
1087 add @x[2],@x[2],@t[2]
1088 add @x[3],@x[3],@t[3]
1089 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1091 add @x[4],@x[4],@t[0] @ accumulate key material
1092 add @t[0],sp,#4*(8)
1093 add @x[5],@x[5],@t[1]
1094 add @x[6],@x[6],@t[2]
1095 add @x[7],@x[7],@t[3]
1096 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1112 add @x[0],@x[0],@t[0] @ accumulate key material
1113 add @t[0],sp,#4*(12)
1114 add @x[1],@x[1],@t[1]
1115 add @x[2],@x[2],@t[2]
1116 add @x[3],@x[3],@t[3]
1117 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1119 add @x[4],@x[4],@t[0] @ accumulate key material
1120 add @t[0],sp,#4*(8)
1121 add @x[5],@x[5],@t[1]
1123 add @x[6],@x[6],@t[2]
1124 add @x[7],@x[7],@t[3]
1125 ldr @t[3],[sp,#4*(32+2)] @ re-load len
1136 stmia @t[0],{@x[0]-@x[7]}
1137 add @t[2],sp,#4*(0)
1138 sub @t[3],@t[3],#64*3 @ len-=64*3
1141 ldrb @t[0],[@t[2]],#1 @ read buffer on stack
1142 ldrb @t[1],[r12],#1 @ read input
1143 subs @t[3],@t[3],#1
1144 eor @t[0],@t[0],@t[1]
1145 strb @t[0],[r14],#1 @ store output