Lines Matching refs:a0
79 la a0, shared_var
82 lr.d.aq s2, (a0) // load and reserve a0
84 sc.d.rl s2, t0, (a0) // try to lock a0
91 sd zero, (a0) // release the lock by storing 0 to a0
96 la a0, barrier
97 amoadd.d zero, t0, (a0) // signal this thread's completion
105 la a0, var
107 ld a0, (a0)
108 bne a0, a1, _fail
109 li a0, SUCCESS
113 li a0, FAILURE