Lines Matching refs:o2

98 	ld	[%o0], %o2		! read old value
100 add %o2, %o1, %o5 ! add value to the old value
102 andn %o2, %o3, %o4 ! clear target bits
104 cas [%o0], %o2, %o5
105 cmp %o2, %o5
107 mov %o5, %o2 ! %o2 = old value
108 add %o2, %o1, %o5
172 ld [%o0], %o2 ! read old value
174 add %o1, %o2, %o5 ! add value to the old value
176 andn %o2, %o3, %o4 ! clear target bits
178 cas [%o0], %o2, %o5
179 cmp %o2, %o5
181 mov %o5, %o2 ! %o2 = old value
182 add %o1, %o2, %o5
248 ld [%o0], %o2
250 add %o2, %o1, %o3
251 cas [%o0], %o2, %o3
252 cmp %o2, %o3
254 mov %o3, %o2
256 add %o2, %o1, %o0 ! return new value
300 sllx %o1, 32, %o1 ! upper 32 in %o1, lower in %o2
301 srl %o2, 0, %o2
302 add %o1, %o2, %o1 ! convert 2 32-bit args into 1 64-bit
304 ldx [%o0], %o2
306 add %o2, %o1, %o3
307 casx [%o0], %o2, %o3
308 cmp %o2, %o3
310 mov %o3, %o2
311 add %o2, %o1, %o1 ! return lower 32-bits in %o1
335 ld [%o0], %o2 ! read old value
337 or %o2, %o1, %o5 ! or in the new value
338 cas [%o0], %o2, %o5
339 cmp %o2, %o5
341 mov %o5, %o2 ! %o2 = old value
342 or %o2, %o1, %o5
371 ld [%o0], %o2 ! read old value
373 or %o2, %o1, %o5 ! or in the new value
374 cas [%o0], %o2, %o5
375 cmp %o2, %o5
377 mov %o5, %o2 ! %o2 = old value
378 or %o2, %o1, %o5 ! or in the new value
399 ld [%o0], %o2
401 or %o2, %o1, %o3
402 cas [%o0], %o2, %o3
403 cmp %o2, %o3
405 mov %o3, %o2
407 or %o2, %o1, %o0 ! return new value
423 sllx %o1, 32, %o1 ! upper 32 in %o1, lower in %o2
424 srl %o2, 0, %o2
425 add %o1, %o2, %o1 ! convert 2 32-bit args into 1 64-bit
426 ldx [%o0], %o2
428 or %o2, %o1, %o3
429 casx [%o0], %o2, %o3
430 cmp %o2, %o3
432 mov %o3, %o2
433 or %o2, %o1, %o1 ! return lower 32-bits in %o1
457 ld [%o0], %o2 ! read old value
459 and %o2, %o1, %o5 ! and in the new value
460 cas [%o0], %o2, %o5
461 cmp %o2, %o5
463 mov %o5, %o2 ! %o2 = old value
464 and %o2, %o1, %o5
493 ld [%o0], %o2 ! read old value
495 and %o2, %o1, %o5 ! and in the new value
496 cas [%o0], %o2, %o5
497 cmp %o2, %o5
499 mov %o5, %o2 ! %o2 = old value
500 and %o2, %o1, %o5
521 ld [%o0], %o2
523 and %o2, %o1, %o3
524 cas [%o0], %o2, %o3
525 cmp %o2, %o3
527 mov %o3, %o2
529 and %o2, %o1, %o0 ! return new value
545 sllx %o1, 32, %o1 ! upper 32 in %o1, lower in %o2
546 srl %o2, 0, %o2
547 add %o1, %o2, %o1 ! convert 2 32-bit args into 1 64-bit
548 ldx [%o0], %o2
550 and %o2, %o1, %o3
551 casx [%o0], %o2, %o3
552 cmp %o2, %o3
554 mov %o3, %o2
555 and %o2, %o1, %o1 ! return lower 32-bits in %o1
570 sll %o2, %g1, %o2 ! %o2 = shifted to bit offset
571 and %o2, %o3, %o2 ! %o2 = single byte value
576 or %o4, %o2, %o5 ! insert the new value
601 sll %o2, %g1, %o2 ! %o2 = shifted to bit offset
602 and %o2, %o3, %o2 ! %o2 = single short value
608 or %o4, %o2, %o5 ! insert the new value
627 cas [%o0], %o1, %o2
629 mov %o2, %o0
636 sllx %o1, 32, %o1 ! cmp's upper 32 in %o1, lower in %o2
637 srl %o2, 0, %o2 ! convert 2 32-bit args into 1 64-bit
638 add %o1, %o2, %o1
639 sllx %o3, 32, %o2 ! newval upper 32 in %o3, lower in %o4
640 srl %o4, 0, %o4 ! setup %o2 to have newval
641 add %o2, %o4, %o2
642 casx [%o0], %o1, %o2
643 srl %o2, 0, %o1 ! return lower 32-bits in %o1
645 srlx %o2, 32, %o0 ! return upper 32-bits in %o0
658 ld [%o0], %o2 ! read old value
660 andn %o2, %o3, %o5 ! clear target bits
662 cas [%o0], %o2, %o5
663 cmp %o2, %o5
665 mov %o5, %o2 ! %o2 = old value
684 ld [%o0], %o2 ! read old value
686 andn %o2, %o3, %o5 ! clear target bits
688 cas [%o0], %o2, %o5
689 cmp %o2, %o5
691 mov %o5, %o2 ! %o2 = old value
702 ld [%o0], %o2
705 cas [%o0], %o2, %o3
706 cmp %o2, %o3
708 mov %o3, %o2
717 sllx %o1, 32, %o1 ! upper 32 in %o1, lower in %o2
718 srl %o2, 0, %o2
719 add %o1, %o2, %o1 ! convert 2 32-bit args into 1 64-bit
720 ldx [%o0], %o2
723 casx [%o0], %o2, %o3
724 cmp %o2, %o3
726 mov %o3, %o2
735 ldn [%o0], %o2
737 andcc %o2, %o3, %g0 ! test if the bit is set
740 or %o2, %o3, %o4 ! set the bit, and try to commit it
741 casn [%o0], %o2, %o4
742 cmp %o2, %o4
744 mov %o4, %o2
754 ldn [%o0], %o2
756 andncc %o3, %o2, %g0 ! test if the bit is clear
759 andn %o2, %o3, %o4 ! clear the bit, and try to commit it
760 casn [%o0], %o2, %o4
761 cmp %o2, %o4
763 mov %o4, %o2