Lines Matching refs:x

90 my @x=map("r$_",(16..31));
101 "&add (@x[$a0],@x[$a0],@x[$b0])",
102 "&add (@x[$a1],@x[$a1],@x[$b1])",
103 "&add (@x[$a2],@x[$a2],@x[$b2])",
104 "&add (@x[$a3],@x[$a3],@x[$b3])",
105 "&xor (@x[$d0],@x[$d0],@x[$a0])",
106 "&xor (@x[$d1],@x[$d1],@x[$a1])",
107 "&xor (@x[$d2],@x[$d2],@x[$a2])",
108 "&xor (@x[$d3],@x[$d3],@x[$a3])",
109 "&rotlwi (@x[$d0],@x[$d0],16)",
110 "&rotlwi (@x[$d1],@x[$d1],16)",
111 "&rotlwi (@x[$d2],@x[$d2],16)",
112 "&rotlwi (@x[$d3],@x[$d3],16)",
114 "&add (@x[$c0],@x[$c0],@x[$d0])",
115 "&add (@x[$c1],@x[$c1],@x[$d1])",
116 "&add (@x[$c2],@x[$c2],@x[$d2])",
117 "&add (@x[$c3],@x[$c3],@x[$d3])",
118 "&xor (@x[$b0],@x[$b0],@x[$c0])",
119 "&xor (@x[$b1],@x[$b1],@x[$c1])",
120 "&xor (@x[$b2],@x[$b2],@x[$c2])",
121 "&xor (@x[$b3],@x[$b3],@x[$c3])",
122 "&rotlwi (@x[$b0],@x[$b0],12)",
123 "&rotlwi (@x[$b1],@x[$b1],12)",
124 "&rotlwi (@x[$b2],@x[$b2],12)",
125 "&rotlwi (@x[$b3],@x[$b3],12)",
127 "&add (@x[$a0],@x[$a0],@x[$b0])",
128 "&add (@x[$a1],@x[$a1],@x[$b1])",
129 "&add (@x[$a2],@x[$a2],@x[$b2])",
130 "&add (@x[$a3],@x[$a3],@x[$b3])",
131 "&xor (@x[$d0],@x[$d0],@x[$a0])",
132 "&xor (@x[$d1],@x[$d1],@x[$a1])",
133 "&xor (@x[$d2],@x[$d2],@x[$a2])",
134 "&xor (@x[$d3],@x[$d3],@x[$a3])",
135 "&rotlwi (@x[$d0],@x[$d0],8)",
136 "&rotlwi (@x[$d1],@x[$d1],8)",
137 "&rotlwi (@x[$d2],@x[$d2],8)",
138 "&rotlwi (@x[$d3],@x[$d3],8)",
140 "&add (@x[$c0],@x[$c0],@x[$d0])",
141 "&add (@x[$c1],@x[$c1],@x[$d1])",
142 "&add (@x[$c2],@x[$c2],@x[$d2])",
143 "&add (@x[$c3],@x[$c3],@x[$d3])",
144 "&xor (@x[$b0],@x[$b0],@x[$c0])",
145 "&xor (@x[$b1],@x[$b1],@x[$c1])",
146 "&xor (@x[$b2],@x[$b2],@x[$c2])",
147 "&xor (@x[$b3],@x[$b3],@x[$c3])",
148 "&rotlwi (@x[$b0],@x[$b0],7)",
149 "&rotlwi (@x[$b1],@x[$b1],7)",
150 "&rotlwi (@x[$b2],@x[$b2],7)",
151 "&rotlwi (@x[$b3],@x[$b3],7)"
226 lis @x[0],0x6170 # synthesize sigma
227 lis @x[1],0x3320
228 lis @x[2],0x7962
229 lis @x[3],0x6b20
230 ori @x[0],@x[0],0x7865
231 ori @x[1],@x[1],0x646e
232 ori @x[2],@x[2],0x2d32
233 ori @x[3],@x[3],0x6574
236 lwz @x[4],0($key) # load key
237 lwz @x[5],4($key)
238 lwz @x[6],8($key)
239 lwz @x[7],12($key)
240 lwz @x[8],16($key)
241 mr @x[12],@d[0] # copy counter
242 lwz @x[9],20($key)
243 mr @x[13],@d[1]
244 lwz @x[10],24($key)
245 mr @x[14],@d[2]
246 lwz @x[11],28($key)
247 mr @x[15],@d[3]
249 mr @t[0],@x[4]
250 mr @t[1],@x[5]
251 mr @t[2],@x[6]
252 mr @t[3],@x[7]
263 addi @x[0],@x[0],0x7865 # accumulate key block
264 addi @x[1],@x[1],0x646e
265 addi @x[2],@x[2],0x2d32
266 addi @x[3],@x[3],0x6574
267 addis @x[0],@x[0],0x6170
268 addis @x[1],@x[1],0x3320
269 addis @x[2],@x[2],0x7962
270 addis @x[3],@x[3],0x6b20
273 add @x[4],@x[4],@t[0]
275 add @x[5],@x[5],@t[1]
277 add @x[6],@x[6],@t[2]
279 add @x[7],@x[7],@t[3]
281 add @x[8],@x[8],@t[0]
282 add @x[9],@x[9],@t[1]
283 add @x[10],@x[10],@t[2]
284 add @x[11],@x[11],@t[3]
286 add @x[12],@x[12],@d[0]
287 add @x[13],@x[13],@d[1]
288 add @x[14],@x[14],@d[2]
289 add @x[15],@x[15],@d[3]
294 mr @t[$i&3],@x[$i]
295 rotlwi @x[$i],@x[$i],8
296 rlwimi @x[$i],@t[$i&3],24,0,7
297 rlwimi @x[$i],@t[$i&3],24,16,23
308 xor @x[0],@x[0],@t[0] # xor with input
310 xor @x[1],@x[1],@t[1]
312 xor @x[2],@x[2],@t[2]
314 xor @x[3],@x[3],@t[3]
316 xor @x[4],@x[4],@t[0]
318 xor @x[5],@x[5],@t[1]
320 xor @x[6],@x[6],@t[2]
322 xor @x[7],@x[7],@t[3]
324 xor @x[8],@x[8],@t[0]
326 xor @x[9],@x[9],@t[1]
328 xor @x[10],@x[10],@t[2]
330 xor @x[11],@x[11],@t[3]
332 xor @x[12],@x[12],@t[0]
333 stw @x[0],0($out) # store output, aligned or not
334 xor @x[13],@x[13],@t[1]
335 stw @x[1],4($out)
336 xor @x[14],@x[14],@t[2]
337 stw @x[2],8($out)
338 xor @x[15],@x[15],@t[3]
339 stw @x[3],12($out)
340 stw @x[4],16($out)
341 stw @x[5],20($out)
342 stw @x[6],24($out)
343 stw @x[7],28($out)
344 stw @x[8],32($out)
345 stw @x[9],36($out)
346 stw @x[10],40($out)
347 stw @x[11],44($out)
348 stw @x[12],48($out)
349 stw @x[13],52($out)
350 stw @x[14],56($out)
352 stw @x[15],60($out)
367 stw @x[0],`$LOCALS+0`($sp) # save whole block to stack
368 stw @x[1],`$LOCALS+4`($sp)
369 stw @x[2],`$LOCALS+8`($sp)
370 stw @x[3],`$LOCALS+12`($sp)
371 stw @x[4],`$LOCALS+16`($sp)
372 stw @x[5],`$LOCALS+20`($sp)
373 stw @x[6],`$LOCALS+24`($sp)
374 stw @x[7],`$LOCALS+28`($sp)
375 stw @x[8],`$LOCALS+32`($sp)
376 stw @x[9],`$LOCALS+36`($sp)
377 stw @x[10],`$LOCALS+40`($sp)
378 stw @x[11],`$LOCALS+44`($sp)
379 stw @x[12],`$LOCALS+48`($sp)
380 stw @x[13],`$LOCALS+52`($sp)
381 stw @x[14],`$LOCALS+56`($sp)
382 stw @x[15],`$LOCALS+60`($sp)
386 lbzu @x[0],1(@t[0])
387 xor @d[1],@d[0],@x[0]
504 li @x[0],16
505 li @x[1],32
506 li @x[2],48
507 li @x[3],64
508 li @x[4],31 # 31 is not a typo
509 li @x[5],15 # nor is 15
513 lvx @K[2],@x[0],$key
514 lvx @D[0],@x[4],$key
518 lvx @D[1],@x[5],$ctr
521 lvx @K[5],@x[0],r12 # one
522 lvx $FOUR,@x[1],r12
523 lvx $sixteen,@x[2],r12
524 lvx $twenty4,@x[3],r12
544 be?lvsl $T0,0,@x[0] # 0x00..0f
555 lis @x[0],0x6170 # synthesize sigma
556 lis @x[1],0x3320
558 lis @x[2],0x7962
559 lis @x[3],0x6b20
561 ori @x[0],@x[0],0x7865
562 ori @x[1],@x[1],0x646e
564 ori @x[2],@x[2],0x2d32
565 ori @x[3],@x[3],0x6574
568 lwz @x[4],0($key) # load key to GPR
570 lwz @x[5],4($key)
572 lwz @x[6],8($key)
574 lwz @x[7],12($key)
576 lwz @x[8],16($key)
578 mr @x[12],@d[0] # copy GPR counter
579 lwz @x[9],20($key)
581 mr @x[13],@d[1]
582 lwz @x[10],24($key)
584 mr @x[14],@d[2]
585 lwz @x[11],28($key)
587 mr @x[15],@d[3]
589 mr @t[0],@x[4]
590 mr @t[1],@x[5]
591 mr @t[2],@x[6]
592 mr @t[3],@x[7]
636 addi @x[0],@x[0],0x7865 # accumulate key block
637 addi @x[1],@x[1],0x646e
638 addi @x[2],@x[2],0x2d32
639 addi @x[3],@x[3],0x6574
640 addis @x[0],@x[0],0x6170
641 addis @x[1],@x[1],0x3320
642 addis @x[2],@x[2],0x7962
643 addis @x[3],@x[3],0x6b20
644 add @x[4],@x[4],@t[0]
646 add @x[5],@x[5],@t[1]
648 add @x[6],@x[6],@t[2]
650 add @x[7],@x[7],@t[3]
652 add @x[8],@x[8],@t[0]
653 add @x[9],@x[9],@t[1]
654 add @x[10],@x[10],@t[2]
655 add @x[11],@x[11],@t[3]
656 add @x[12],@x[12],@d[0]
657 add @x[13],@x[13],@d[1]
658 add @x[14],@x[14],@d[2]
659 add @x[15],@x[15],@d[3]
682 mr @t[$i&3],@x[$i]
683 rotlwi @x[$i],@x[$i],8
684 rlwimi @x[$i],@t[$i&3],24,0,7
685 rlwimi @x[$i],@t[$i&3],24,16,23
693 xor @x[0],@x[0],@t[0] # xor with input
695 xor @x[1],@x[1],@t[1]
697 xor @x[2],@x[2],@t[2]
699 xor @x[3],@x[3],@t[3]
701 xor @x[4],@x[4],@t[0]
703 xor @x[5],@x[5],@t[1]
705 xor @x[6],@x[6],@t[2]
707 xor @x[7],@x[7],@t[3]
709 xor @x[8],@x[8],@t[0]
711 xor @x[9],@x[9],@t[1]
713 xor @x[10],@x[10],@t[2]
715 xor @x[11],@x[11],@t[3]
717 xor @x[12],@x[12],@t[0]
718 stw @x[0],0($out) # store output, aligned or not
719 xor @x[13],@x[13],@t[1]
720 stw @x[1],4($out)
721 xor @x[14],@x[14],@t[2]
722 stw @x[2],8($out)
723 xor @x[15],@x[15],@t[3]
724 stw @x[3],12($out)
726 stw @x[4],16($out)
728 stw @x[5],20($out)
730 stw @x[6],24($out)
732 stw @x[7],28($out)
734 stw @x[8],32($out)
735 stw @x[9],36($out)
736 stw @x[10],40($out)
737 stw @x[11],44($out)
738 stw @x[12],48($out)
739 stw @x[13],52($out)
740 stw @x[14],56($out)
741 stw @x[15],60($out)
801 andi. @x[1],$out,15 # is $out aligned?
802 mr @x[0],$out
834 sub @x[2],$out,@x[1] # in misaligned case edges
835 li @x[3],0 # are written byte-by-byte
837 stvebx $D2,@x[3],@x[2]
838 addi @x[3],@x[3],1
839 cmpw @x[3],@x[1]
842 sub @x[2],@x[0],@x[1]
844 stvebx $A0,@x[1],@x[2]
845 cmpwi @x[1],15
846 addi @x[1],@x[1],1
856 stvx $A0,0,@x[0] # head hexaword was not stored
932 my @x=map("\"v$_\"",(0..15));
935 "&vadduwm (@x[$a0],@x[$a0],@x[$b0])", # Q1
936 "&vadduwm (@x[$a1],@x[$a1],@x[$b1])", # Q2
937 "&vadduwm (@x[$a2],@x[$a2],@x[$b2])", # Q3
938 "&vadduwm (@x[$a3],@x[$a3],@x[$b3])", # Q4
939 "&vxor (@x[$d0],@x[$d0],@x[$a0])",
940 "&vxor (@x[$d1],@x[$d1],@x[$a1])",
941 "&vxor (@x[$d2],@x[$d2],@x[$a2])",
942 "&vxor (@x[$d3],@x[$d3],@x[$a3])",
943 "&vrlw (@x[$d0],@x[$d0],'$sixteen')",
944 "&vrlw (@x[$d1],@x[$d1],'$sixteen')",
945 "&vrlw (@x[$d2],@x[$d2],'$sixteen')",
946 "&vrlw (@x[$d3],@x[$d3],'$sixteen')",
948 "&vadduwm (@x[$c0],@x[$c0],@x[$d0])",
949 "&vadduwm (@x[$c1],@x[$c1],@x[$d1])",
950 "&vadduwm (@x[$c2],@x[$c2],@x[$d2])",
951 "&vadduwm (@x[$c3],@x[$c3],@x[$d3])",
952 "&vxor (@x[$b0],@x[$b0],@x[$c0])",
953 "&vxor (@x[$b1],@x[$b1],@x[$c1])",
954 "&vxor (@x[$b2],@x[$b2],@x[$c2])",
955 "&vxor (@x[$b3],@x[$b3],@x[$c3])",
956 "&vrlw (@x[$b0],@x[$b0],'$twelve')",
957 "&vrlw (@x[$b1],@x[$b1],'$twelve')",
958 "&vrlw (@x[$b2],@x[$b2],'$twelve')",
959 "&vrlw (@x[$b3],@x[$b3],'$twelve')",
961 "&vadduwm (@x[$a0],@x[$a0],@x[$b0])",
962 "&vadduwm (@x[$a1],@x[$a1],@x[$b1])",
963 "&vadduwm (@x[$a2],@x[$a2],@x[$b2])",
964 "&vadduwm (@x[$a3],@x[$a3],@x[$b3])",
965 "&vxor (@x[$d0],@x[$d0],@x[$a0])",
966 "&vxor (@x[$d1],@x[$d1],@x[$a1])",
967 "&vxor (@x[$d2],@x[$d2],@x[$a2])",
968 "&vxor (@x[$d3],@x[$d3],@x[$a3])",
969 "&vrlw (@x[$d0],@x[$d0],'$eight')",
970 "&vrlw (@x[$d1],@x[$d1],'$eight')",
971 "&vrlw (@x[$d2],@x[$d2],'$eight')",
972 "&vrlw (@x[$d3],@x[$d3],'$eight')",
974 "&vadduwm (@x[$c0],@x[$c0],@x[$d0])",
975 "&vadduwm (@x[$c1],@x[$c1],@x[$d1])",
976 "&vadduwm (@x[$c2],@x[$c2],@x[$d2])",
977 "&vadduwm (@x[$c3],@x[$c3],@x[$d3])",
978 "&vxor (@x[$b0],@x[$b0],@x[$c0])",
979 "&vxor (@x[$b1],@x[$b1],@x[$c1])",
980 "&vxor (@x[$b2],@x[$b2],@x[$c2])",
981 "&vxor (@x[$b3],@x[$b3],@x[$c3])",
982 "&vrlw (@x[$b0],@x[$b0],'$seven')",
983 "&vrlw (@x[$b1],@x[$b1],'$seven')",
984 "&vrlw (@x[$b2],@x[$b2],'$seven')",
985 "&vrlw (@x[$b3],@x[$b3],'$seven')"