Lines Matching refs:t

53 my @t=map("r$_",(8..11));
61 my ($xc,$xc_) = (@t[0..1]);
62 my ($xd,$xd_) = $odd ? (@t[2],@x[$d1]) : (@x[$d0],@t[2]);
236 str @t[3],[sp,#4*(32+2)] @ save len
240 ldr @t[3], [sp,#4*(15)]
242 ldr @t[2], [sp,#4*(13)]
244 str @t[3], [sp,#4*(16+15)]
245 mov @t[3],#10
250 subs @t[3],@t[3],#1
257 ldr @t[3],[sp,#4*(32+2)] @ load len
259 str @t[0], [sp,#4*(16+8)] @ modulo-scheduled store
260 str @t[1], [sp,#4*(16+9)]
262 str @t[2], [sp,#4*(16+13)]
268 cmp @t[3],#64 @ done yet?
277 ldr @t[0],[sp,#4*(0)] @ load key material
278 ldr @t[1],[sp,#4*(1)]
282 orr @t[2],r12,r14
283 tst @t[2],#3 @ are input and output aligned?
284 ldr @t[2],[sp,#4*(2)]
286 cmp @t[3],#64 @ restore flags
288 ldr @t[2],[sp,#4*(2)]
290 ldr @t[3],[sp,#4*(3)]
292 add @x[0],@x[0],@t[0] @ accumulate key material
293 add @x[1],@x[1],@t[1]
297 ldrhs @t[0],[r12],#16 @ load input
298 ldrhs @t[1],[r12,#-12]
300 add @x[2],@x[2],@t[2]
301 add @x[3],@x[3],@t[3]
305 ldrhs @t[2],[r12,#-8]
306 ldrhs @t[3],[r12,#-4]
316 eorhs @x[0],@x[0],@t[0] @ xor with input
317 eorhs @x[1],@x[1],@t[1]
318 add @t[0],sp,#4*(4)
323 eorhs @x[2],@x[2],@t[2]
324 eorhs @x[3],@x[3],@t[3]
325 ldmia @t[0],{@t[0]-@t[3]} @ load key material
330 add @x[4],@x[4],@t[0] @ accumulate key material
331 add @x[5],@x[5],@t[1]
335 ldrhs @t[0],[r12],#16 @ load input
336 ldrhs @t[1],[r12,#-12]
337 add @x[6],@x[6],@t[2]
338 add @x[7],@x[7],@t[3]
342 ldrhs @t[2],[r12,#-8]
343 ldrhs @t[3],[r12,#-4]
353 eorhs @x[4],@x[4],@t[0]
354 eorhs @x[5],@x[5],@t[1]
355 add @t[0],sp,#4*(8)
360 eorhs @x[6],@x[6],@t[2]
361 eorhs @x[7],@x[7],@t[3]
363 ldmia @t[0],{@t[0]-@t[3]} @ load key material
370 add @x[0],@x[0],@t[0] @ accumulate key material
371 add @x[1],@x[1],@t[1]
375 ldrhs @t[0],[r12],#16 @ load input
376 ldrhs @t[1],[r12,#-12]
380 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]" while at it
381 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]" while at it
382 add @x[2],@x[2],@t[2]
383 add @x[3],@x[3],@t[3]
387 ldrhs @t[2],[r12,#-8]
388 ldrhs @t[3],[r12,#-4]
398 eorhs @x[0],@x[0],@t[0]
399 eorhs @x[1],@x[1],@t[1]
400 add @t[0],sp,#4*(12)
405 eorhs @x[2],@x[2],@t[2]
406 eorhs @x[3],@x[3],@t[3]
408 ldmia @t[0],{@t[0]-@t[3]} @ load key material
412 add @x[4],@x[4],@t[0] @ accumulate key material
413 add @x[5],@x[5],@t[1]
417 addhi @t[0],@t[0],#1 @ next counter value
418 strhi @t[0],[sp,#4*(12)] @ save next counter value
422 ldrhs @t[0],[r12],#16 @ load input
423 ldrhs @t[1],[r12,#-12]
424 add @x[6],@x[6],@t[2]
425 add @x[7],@x[7],@t[3]
429 ldrhs @t[2],[r12,#-8]
430 ldrhs @t[3],[r12,#-4]
440 eorhs @x[4],@x[4],@t[0]
441 eorhs @x[5],@x[5],@t[1]
445 ldrne @t[0],[sp,#4*(32+2)] @ re-load len
449 eorhs @x[6],@x[6],@t[2]
450 eorhs @x[7],@x[7],@t[3]
456 subhs @t[3],@t[0],#64 @ len-=64
467 cmp @t[3],#64 @ restore flags
471 ldr @t[3],[sp,#4*(3)]
484 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]"
485 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]"
488 add @x[$j+0],@x[$j+0],@t[0] @ accumulate key material
494 addhi @t[0],@t[0],#1 @ next counter value
495 strhi @t[0],[sp,#4*(12)] @ save next counter value
498 add @x[$j+1],@x[$j+1],@t[1]
499 add @x[$j+2],@x[$j+2],@t[2]
503 eorlo @t[0],@t[0],@t[0] @ zero or ...
504 ldrhsb @t[0],[r12],#16 @ ... load input
505 eorlo @t[1],@t[1],@t[1]
506 ldrhsb @t[1],[r12,#-12]
508 add @x[$j+3],@x[$j+3],@t[3]
512 eorlo @t[2],@t[2],@t[2]
513 ldrhsb @t[2],[r12,#-8]
514 eorlo @t[3],@t[3],@t[3]
515 ldrhsb @t[3],[r12,#-4]
517 eor @x[$j+0],@t[0],@x[$j+0] @ xor with input (or zero)
518 eor @x[$j+1],@t[1],@x[$j+1]
522 ldrhsb @t[0],[r12,#-15] @ load more input
523 ldrhsb @t[1],[r12,#-11]
524 eor @x[$j+2],@t[2],@x[$j+2]
526 eor @x[$j+3],@t[3],@x[$j+3]
530 ldrhsb @t[2],[r12,#-7]
531 ldrhsb @t[3],[r12,#-3]
533 eor @x[$j+0],@t[0],@x[$j+0],lsr#8
535 eor @x[$j+1],@t[1],@x[$j+1],lsr#8
539 ldrhsb @t[0],[r12,#-14] @ load more input
540 ldrhsb @t[1],[r12,#-10]
542 eor @x[$j+2],@t[2],@x[$j+2],lsr#8
544 eor @x[$j+3],@t[3],@x[$j+3],lsr#8
548 ldrhsb @t[2],[r12,#-6]
549 ldrhsb @t[3],[r12,#-2]
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,#-13] @ load more input
558 ldrhsb @t[1],[r12,#-9]
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,#-5]
567 ldrhsb @t[3],[r12,#-1]
570 eor @x[$j+0],@t[0],@x[$j+0],lsr#8
572 eor @x[$j+1],@t[1],@x[$j+1],lsr#8
574 eor @x[$j+2],@t[2],@x[$j+2],lsr#8
576 eor @x[$j+3],@t[3],@x[$j+3],lsr#8
581 add @t[0],sp,#4*(4+$i)
582 ldmia @t[0],{@t[0]-@t[3]} @ load key material
589 ldrne @t[0],[sp,#4*(32+2)] @ re-load len
593 subhs @t[3],@t[0],#64 @ len-=64
601 add @t[1],sp,#4*(0)
605 ldrb @t[2],[@t[1]],#1 @ read buffer on stack
606 ldrb @t[3],[r12],#1 @ read input
607 subs @t[0],@t[0],#1
608 eor @t[3],@t[3],@t[2]
609 strb @t[3],[r14],#1 @ store output
625 my ($a,$b,$c,$d,$t)=@_;
633 "&veor ($t,$b,$c)",
634 "&vshr_u32 ($b,$t,20)",
635 "&vsli_32 ($b,$t,12)",
638 "&veor ($t,$d,$a)",
639 "&vshr_u32 ($d,$t,24)",
640 "&vsli_32 ($d,$t,8)",
643 "&veor ($t,$b,$c)",
644 "&vshr_u32 ($b,$t,25)",
645 "&vsli_32 ($b,$t,7)",
696 cmp @t[3],#64*2 @ if len<=64*2
699 str @t[3],[sp,#4*(32+2)] @ save len
706 ldr @t[3], [sp,#4*(15)]
710 ldr @t[2], [sp,#4*(13)]
714 str @t[3], [sp,#4*(16+15)]
715 mov @t[3],#10
721 subs @t[3],@t[3],#1
747 add @t[3],sp,#32
749 vld1.32 {$t2-$t3},[@t[3]]
751 ldr @t[3],[sp,#4*(32+2)] @ load len
753 str @t[0], [sp,#4*(16+8)] @ modulo-scheduled store
754 str @t[1], [sp,#4*(16+9)]
756 str @t[2], [sp,#4*(16+13)]
785 cmp @t[3],#64*4
789 mov @t[3],sp
808 vld1.32 {$a0-$b0},[@t[3]]! @ load for next iteration
812 vld1.32 {$c0-$d0},[@t[3]]
821 ldmia sp,{@t[0]-@t[3]} @ load key material
822 add @x[0],@x[0],@t[0] @ accumulate key material
823 ldr @t[0],[r12],#16 @ load input
825 add @x[1],@x[1],@t[1]
826 ldr @t[1],[r12,#-12]
828 add @x[2],@x[2],@t[2]
829 ldr @t[2],[r12,#-8]
830 add @x[3],@x[3],@t[3]
831 ldr @t[3],[r12,#-4]
838 eor @x[0],@x[0],@t[0] @ xor with input
839 add @t[0],sp,#4*(4)
840 eor @x[1],@x[1],@t[1]
842 eor @x[2],@x[2],@t[2]
844 eor @x[3],@x[3],@t[3]
845 ldmia @t[0],{@t[0]-@t[3]} @ load key material
849 add @x[4],@x[4],@t[0] @ accumulate key material
850 ldr @t[0],[r12],#16 @ load input
851 add @x[5],@x[5],@t[1]
852 ldr @t[1],[r12,#-12]
853 add @x[6],@x[6],@t[2]
854 ldr @t[2],[r12,#-8]
855 add @x[7],@x[7],@t[3]
856 ldr @t[3],[r12,#-4]
863 eor @x[4],@x[4],@t[0]
864 add @t[0],sp,#4*(8)
865 eor @x[5],@x[5],@t[1]
867 eor @x[6],@x[6],@t[2]
869 eor @x[7],@x[7],@t[3]
870 ldmia @t[0],{@t[0]-@t[3]} @ load key material
877 add @x[0],@x[0],@t[0] @ accumulate key material
878 ldr @t[0],[r12],#16 @ load input
879 add @x[1],@x[1],@t[1]
880 ldr @t[1],[r12,#-12]
884 strhi @t[2],[sp,#4*(16+10)] @ copy "@x[10]" while at it
885 add @x[2],@x[2],@t[2]
886 ldr @t[2],[r12,#-8]
890 strhi @t[3],[sp,#4*(16+11)] @ copy "@x[11]" while at it
891 add @x[3],@x[3],@t[3]
892 ldr @t[3],[r12,#-4]
899 eor @x[0],@x[0],@t[0]
900 add @t[0],sp,#4*(12)
901 eor @x[1],@x[1],@t[1]
903 eor @x[2],@x[2],@t[2]
905 eor @x[3],@x[3],@t[3]
906 ldmia @t[0],{@t[0]-@t[3]} @ load key material
910 add @x[4],@x[4],@t[0] @ accumulate key material
911 add @t[0],@t[0],#4 @ next counter value
912 add @x[5],@x[5],@t[1]
913 str @t[0],[sp,#4*(12)] @ save next counter value
914 ldr @t[0],[r12],#16 @ load input
915 add @x[6],@x[6],@t[2]
917 ldr @t[1],[r12,#-12]
918 add @x[7],@x[7],@t[3]
919 ldr @t[2],[r12,#-8]
920 ldr @t[3],[r12,#-4]
927 eor @x[4],@x[4],@t[0]
931 ldrhi @t[0],[sp,#4*(32+2)] @ re-load len
932 eor @x[5],@x[5],@t[1]
933 eor @x[6],@x[6],@t[2]
935 eor @x[7],@x[7],@t[3]
937 sub @t[3],@t[0],#64*4 @ len-=64*4
950 str @t[3], [sp,#4*(20+32+2)] @ save len
951 add @t[3],sp,#4*(32+4)
957 vldmia @t[3],{d8-d15} @ fulfill ABI requirement
961 ldr @t[3], [sp,#4*(15)]
963 ldr @t[2], [sp,#4*(13)]
965 str @t[3], [sp,#4*(20+16+15)]
966 add @t[3],sp,#4*(20)
967 vst1.32 {$a0-$b0},[@t[3]]! @ copy key
969 vst1.32 {$c0-$d0},[@t[3]]
970 mov @t[3],#10
975 cmp @t[3],#64*3
977 cmp @t[3],#64*2
979 cmp @t[3],#64*1
982 add @t[0],sp,#4*(8)
984 add @t[2],sp,#4*(0)
985 vst1.8 {$c0-$d0},[@t[0]]
1001 add @t[0],sp,#4*(8)
1003 add @t[2],sp,#4*(0)
1004 vst1.8 {$c1-$d1},[@t[0]]
1005 sub @t[3],@t[3],#64*1 @ len-=64*1
1030 add @t[0],sp,#4*(8)
1032 add @t[2],sp,#4*(0)
1033 vst1.8 {$c2-$d2},[@t[0]]
1034 sub @t[3],@t[3],#64*2 @ len-=64*2
1068 ldmia sp,{@t[0]-@t[3]} @ load key material
1069 add @x[0],@x[0],@t[0] @ accumulate key material
1070 add @t[0],sp,#4*(4)
1071 add @x[1],@x[1],@t[1]
1072 add @x[2],@x[2],@t[2]
1073 add @x[3],@x[3],@t[3]
1074 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1076 add @x[4],@x[4],@t[0] @ accumulate key material
1077 add @t[0],sp,#4*(8)
1078 add @x[5],@x[5],@t[1]
1079 add @x[6],@x[6],@t[2]
1080 add @x[7],@x[7],@t[3]
1081 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1097 add @x[0],@x[0],@t[0] @ accumulate key material
1098 add @t[0],sp,#4*(12)
1099 add @x[1],@x[1],@t[1]
1100 add @x[2],@x[2],@t[2]
1101 add @x[3],@x[3],@t[3]
1102 ldmia @t[0],{@t[0]-@t[3]} @ load key material
1104 add @x[4],@x[4],@t[0] @ accumulate key material
1105 add @t[0],sp,#4*(8)
1106 add @x[5],@x[5],@t[1]
1108 add @x[6],@x[6],@t[2]
1109 add @x[7],@x[7],@t[3]
1110 ldr @t[3],[sp,#4*(32+2)] @ re-load len
1121 stmia @t[0],{@x[0]-@x[7]}
1122 add @t[2],sp,#4*(0)
1123 sub @t[3],@t[3],#64*3 @ len-=64*3
1126 ldrb @t[0],[@t[2]],#1 @ read buffer on stack
1127 ldrb @t[1],[r12],#1 @ read input
1128 subs @t[3],@t[3],#1
1129 eor @t[0],@t[0],@t[1]
1130 strb @t[0],[r14],#1 @ store output