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]);
254 str @t[3],[sp,#4*(32+2)] @ save len
258 ldr @t[3], [sp,#4*(15)]
260 ldr @t[2], [sp,#4*(13)]
262 str @t[3], [sp,#4*(16+15)]
263 mov @t[3],#10
268 subs @t[3],@t[3],#1
275 ldr @t[3],[sp,#4*(32+2)] @ load len
277 str @t[0], [sp,#4*(16+8)] @ modulo-scheduled store
278 str @t[1], [sp,#4*(16+9)]
280 str @t[2], [sp,#4*(16+13)]
286 cmp @t[3],#64 @ done yet?
295 ldr @t[0],[sp,#4*(0)] @ load key material
296 ldr @t[1],[sp,#4*(1)]
300 orr @t[2],r12,r14
301 tst @t[2],#3 @ are input and output aligned?
302 ldr @t[2],[sp,#4*(2)]
304 cmp @t[3],#64 @ restore flags
306 ldr @t[2],[sp,#4*(2)]
308 ldr @t[3],[sp,#4*(3)]
310 add @x[0],@x[0],@t[0] @ accumulate key material
311 add @x[1],@x[1],@t[1]
315 ldrhs @t[0],[r12],#16 @ load input
316 ldrhs @t[1],[r12,#-12]
318 add @x[2],@x[2],@t[2]
319 add @x[3],@x[3],@t[3]
323 ldrhs @t[2],[r12,#-8]
324 ldrhs @t[3],[r12,#-4]
334 eorhs @x[0],@x[0],@t[0] @ xor with input
335 eorhs @x[1],@x[1],@t[1]
336 add @t[0],sp,#4*(4)
341 eorhs @x[2],@x[2],@t[2]
342 eorhs @x[3],@x[3],@t[3]
343 ldmia @t[0],{@t[0]-@t[3]} @ load key material
348 add @x[4],@x[4],@t[0] @ accumulate key material
349 add @x[5],@x[5],@t[1]
353 ldrhs @t[0],[r12],#16 @ load input
354 ldrhs @t[1],[r12,#-12]
355 add @x[6],@x[6],@t[2]
356 add @x[7],@x[7],@t[3]
360 ldrhs @t[2],[r12,#-8]
361 ldrhs @t[3],[r12,#-4]
371 eorhs @x[4],@x[4],@t[0]
372 eorhs @x[5],@x[5],@t[1]
373 add @t[0],sp,#4*(8)
378 eorhs @x[6],@x[6],@t[2]
379 eorhs @x[7],@x[7],@t[3]
381 ldmia @t[0],{@t[0]-@t[3]} @ load key material
388 add @x[0],@x[0],@t[0] @ accumulate key material
389 add @x[1],@x[1],@t[1]
393 ldrhs @t[0],[r12],#16 @ load input
394 ldrhs @t[1],[r12,#-12]
398 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]" while at it
399 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]" while at it
400 add @x[2],@x[2],@t[2]
401 add @x[3],@x[3],@t[3]
405 ldrhs @t[2],[r12,#-8]
406 ldrhs @t[3],[r12,#-4]
416 eorhs @x[0],@x[0],@t[0]
417 eorhs @x[1],@x[1],@t[1]
418 add @t[0],sp,#4*(12)
423 eorhs @x[2],@x[2],@t[2]
424 eorhs @x[3],@x[3],@t[3]
426 ldmia @t[0],{@t[0]-@t[3]} @ load key material
430 add @x[4],@x[4],@t[0] @ accumulate key material
431 add @x[5],@x[5],@t[1]
435 addhi @t[0],@t[0],#1 @ next counter value
436 strhi @t[0],[sp,#4*(12)] @ save next counter value
440 ldrhs @t[0],[r12],#16 @ load input
441 ldrhs @t[1],[r12,#-12]
442 add @x[6],@x[6],@t[2]
443 add @x[7],@x[7],@t[3]
447 ldrhs @t[2],[r12,#-8]
448 ldrhs @t[3],[r12,#-4]
458 eorhs @x[4],@x[4],@t[0]
459 eorhs @x[5],@x[5],@t[1]
463 ldrne @t[0],[sp,#4*(32+2)] @ re-load len
467 eorhs @x[6],@x[6],@t[2]
468 eorhs @x[7],@x[7],@t[3]
474 subhs @t[3],@t[0],#64 @ len-=64
485 cmp @t[3],#64 @ restore flags
489 ldr @t[3],[sp,#4*(3)]
502 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]"
503 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]"
506 add @x[$j+0],@x[$j+0],@t[0] @ accumulate key material
512 addhi @t[0],@t[0],#1 @ next counter value
513 strhi @t[0],[sp,#4*(12)] @ save next counter value
516 add @x[$j+1],@x[$j+1],@t[1]
517 add @x[$j+2],@x[$j+2],@t[2]
521 eorlo @t[0],@t[0],@t[0] @ zero or ...
522 ldrhsb @t[0],[r12],#16 @ ... load input
523 eorlo @t[1],@t[1],@t[1]
524 ldrhsb @t[1],[r12,#-12]
526 add @x[$j+3],@x[$j+3],@t[3]
530 eorlo @t[2],@t[2],@t[2]
531 ldrhsb @t[2],[r12,#-8]
532 eorlo @t[3],@t[3],@t[3]
533 ldrhsb @t[3],[r12,#-4]
535 eor @x[$j+0],@t[0],@x[$j+0] @ xor with input (or zero)
536 eor @x[$j+1],@t[1],@x[$j+1]
540 ldrhsb @t[0],[r12,#-15] @ load more input
541 ldrhsb @t[1],[r12,#-11]
542 eor @x[$j+2],@t[2],@x[$j+2]
544 eor @x[$j+3],@t[3],@x[$j+3]
548 ldrhsb @t[2],[r12,#-7]
549 ldrhsb @t[3],[r12,#-3]
551 eor @x[$j+0],@t[0],@x[$j+0],lsr#8
553 eor @x[$j+1],@t[1],@x[$j+1],lsr#8
557 ldrhsb @t[0],[r12,#-14] @ load more input
558 ldrhsb @t[1],[r12,#-10]
560 eor @x[$j+2],@t[2],@x[$j+2],lsr#8
562 eor @x[$j+3],@t[3],@x[$j+3],lsr#8
566 ldrhsb @t[2],[r12,#-6]
567 ldrhsb @t[3],[r12,#-2]
569 eor @x[$j+0],@t[0],@x[$j+0],lsr#8
571 eor @x[$j+1],@t[1],@x[$j+1],lsr#8
575 ldrhsb @t[0],[r12,#-13] @ load more input
576 ldrhsb @t[1],[r12,#-9]
578 eor @x[$j+2],@t[2],@x[$j+2],lsr#8
580 eor @x[$j+3],@t[3],@x[$j+3],lsr#8
584 ldrhsb @t[2],[r12,#-5]
585 ldrhsb @t[3],[r12,#-1]
588 eor @x[$j+0],@t[0],@x[$j+0],lsr#8
590 eor @x[$j+1],@t[1],@x[$j+1],lsr#8
592 eor @x[$j+2],@t[2],@x[$j+2],lsr#8
594 eor @x[$j+3],@t[3],@x[$j+3],lsr#8
599 add @t[0],sp,#4*(4+$i)
600 ldmia @t[0],{@t[0]-@t[3]} @ load key material
607 ldrne @t[0],[sp,#4*(32+2)] @ re-load len
611 subhs @t[3],@t[0],#64 @ len-=64
619 add @t[1],sp,#4*(0)
623 ldrb @t[2],[@t[1]],#1 @ read buffer on stack
624 ldrb @t[3],[r12],#1 @ read input
625 subs @t[0],@t[0],#1
626 eor @t[3],@t[3],@t[2]
627 strb @t[3],[r14],#1 @ store output
643 my ($a,$b,$c,$d,$t)=@_;
651 "&veor ($t,$b,$c)",
652 "&vshr_u32 ($b,$t,20)",
653 "&vsli_32 ($b,$t,12)",
656 "&veor ($t,$d,$a)",
657 "&vshr_u32 ($d,$t,24)",
658 "&vsli_32 ($d,$t,8)",
661 "&veor ($t,$b,$c)",
662 "&vshr_u32 ($b,$t,25)",
663 "&vsli_32 ($b,$t,7)",
714 cmp @t[3],#64*2 @ if len<=64*2
717 str @t[3],[sp,#4*(32+2)] @ save len
724 ldr @t[3], [sp,#4*(15)]
728 ldr @t[2], [sp,#4*(13)]
732 str @t[3], [sp,#4*(16+15)]
733 mov @t[3],#10
739 subs @t[3],@t[3],#1
765 add @t[3],sp,#32
767 vld1.32 {$t2-$t3},[@t[3]]
769 ldr @t[3],[sp,#4*(32+2)] @ load len
771 str @t[0], [sp,#4*(16+8)] @ modulo-scheduled store
772 str @t[1], [sp,#4*(16+9)]
774 str @t[2], [sp,#4*(16+13)]
803 cmp @t[3],#64*4
807 mov @t[3],sp
826 vld1.32 {$a0-$b0},[@t[3]]! @ load for next iteration
830 vld1.32 {$c0-$d0},[@t[3]]
839 ldmia sp,{@t[0]-@t[3]} @ load key material
840 add @x[0],@x[0],@t[0] @ accumulate key material
841 ldr @t[0],[r12],#16 @ load input
843 add @x[1],@x[1],@t[1]
844 ldr @t[1],[r12,#-12]
846 add @x[2],@x[2],@t[2]
847 ldr @t[2],[r12,#-8]
848 add @x[3],@x[3],@t[3]
849 ldr @t[3],[r12,#-4]
856 eor @x[0],@x[0],@t[0] @ xor with input
857 add @t[0],sp,#4*(4)
858 eor @x[1],@x[1],@t[1]
860 eor @x[2],@x[2],@t[2]
862 eor @x[3],@x[3],@t[3]
863 ldmia @t[0],{@t[0]-@t[3]} @ load key material
867 add @x[4],@x[4],@t[0] @ accumulate key material
868 ldr @t[0],[r12],#16 @ load input
869 add @x[5],@x[5],@t[1]
870 ldr @t[1],[r12,#-12]
871 add @x[6],@x[6],@t[2]
872 ldr @t[2],[r12,#-8]
873 add @x[7],@x[7],@t[3]
874 ldr @t[3],[r12,#-4]
881 eor @x[4],@x[4],@t[0]
882 add @t[0],sp,#4*(8)
883 eor @x[5],@x[5],@t[1]
885 eor @x[6],@x[6],@t[2]
887 eor @x[7],@x[7],@t[3]
888 ldmia @t[0],{@t[0]-@t[3]} @ load key material
895 add @x[0],@x[0],@t[0] @ accumulate key material
896 ldr @t[0],[r12],#16 @ load input
897 add @x[1],@x[1],@t[1]
898 ldr @t[1],[r12,#-12]
902 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]" while at it
903 add @x[2],@x[2],@t[2]
904 ldr @t[2],[r12,#-8]
908 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]" while at it
909 add @x[3],@x[3],@t[3]
910 ldr @t[3],[r12,#-4]
917 eor @x[0],@x[0],@t[0]
918 add @t[0],sp,#4*(12)
919 eor @x[1],@x[1],@t[1]
921 eor @x[2],@x[2],@t[2]
923 eor @x[3],@x[3],@t[3]
924 ldmia @t[0],{@t[0]-@t[3]} @ load key material
928 add @x[4],@x[4],@t[0] @ accumulate key material
929 add @t[0],@t[0],#4 @ next counter value
930 add @x[5],@x[5],@t[1]
931 str @t[0],[sp,#4*(12)] @ save next counter value
932 ldr @t[0],[r12],#16 @ load input
933 add @x[6],@x[6],@t[2]
935 ldr @t[1],[r12,#-12]
936 add @x[7],@x[7],@t[3]
937 ldr @t[2],[r12,#-8]
938 ldr @t[3],[r12,#-4]
945 eor @x[4],@x[4],@t[0]
949 ldrhi @t[0],[sp,#4*(32+2)] @ re-load len
950 eor @x[5],@x[5],@t[1]
951 eor @x[6],@x[6],@t[2]
953 eor @x[7],@x[7],@t[3]
955 sub @t[3],@t[0],#64*4 @ len-=64*4
968 str @t[3], [sp,#4*(20+32+2)] @ save len
969 add @t[3],sp,#4*(32+4)
975 vldmia @t[3],{d8-d15} @ fulfill ABI requirement
979 ldr @t[3], [sp,#4*(15)]
981 ldr @t[2], [sp,#4*(13)]
983 str @t[3], [sp,#4*(20+16+15)]
984 add @t[3],sp,#4*(20)
985 vst1.32 {$a0-$b0},[@t[3]]! @ copy key
987 vst1.32 {$c0-$d0},[@t[3]]
988 mov @t[3],#10
993 cmp @t[3],#64*3
995 cmp @t[3],#64*2
997 cmp @t[3],#64*1
1000 add @t[0],sp,#4*(8)
1002 add @t[2],sp,#4*(0)
1003 vst1.8 {$c0-$d0},[@t[0]]
1019 add @t[0],sp,#4*(8)
1021 add @t[2],sp,#4*(0)
1022 vst1.8 {$c1-$d1},[@t[0]]
1023 sub @t[3],@t[3],#64*1 @ len-=64*1
1048 add @t[0],sp,#4*(8)
1050 add @t[2],sp,#4*(0)
1051 vst1.8 {$c2-$d2},[@t[0]]
1052 sub @t[3],@t[3],#64*2 @ len-=64*2
1086 ldmia sp,{@t[0]-@t[3]} @ load key material
1087 add @x[0],@x[0],@t[0] @ accumulate key material
1088 add @t[0],sp,#4*(4)
1089 add @x[1],@x[1],@t[1]
1090 add @x[2],@x[2],@t[2]
1091 add @x[3],@x[3],@t[3]
1092 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1094 add @x[4],@x[4],@t[0] @ accumulate key material
1095 add @t[0],sp,#4*(8)
1096 add @x[5],@x[5],@t[1]
1097 add @x[6],@x[6],@t[2]
1098 add @x[7],@x[7],@t[3]
1099 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1115 add @x[0],@x[0],@t[0] @ accumulate key material
1116 add @t[0],sp,#4*(12)
1117 add @x[1],@x[1],@t[1]
1118 add @x[2],@x[2],@t[2]
1119 add @x[3],@x[3],@t[3]
1120 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1122 add @x[4],@x[4],@t[0] @ accumulate key material
1123 add @t[0],sp,#4*(8)
1124 add @x[5],@x[5],@t[1]
1126 add @x[6],@x[6],@t[2]
1127 add @x[7],@x[7],@t[3]
1128 ldr @t[3],[sp,#4*(32+2)] @ re-load len
1139 stmia @t[0],{@x[0]-@x[7]}
1140 add @t[2],sp,#4*(0)
1141 sub @t[3],@t[3],#64*3 @ len-=64*3
1144 ldrb @t[0],[@t[2]],#1 @ read buffer on stack
1145 ldrb @t[1],[r12],#1 @ read input
1146 subs @t[3],@t[3],#1
1147 eor @t[0],@t[0],@t[1]
1148 strb @t[0],[r14],#1 @ store output