[LTP] tst_atomic_add_return() implementation for sparc

Petr Vorel pvorel@suse.cz
Thu May 11 09:33:12 CEST 2017


Hi Cyril,

> So something as:

> 	int ret;
> 	__asm__ __volatile__("": : :"memory");
> 	ret = (counter = counter + 1);
>         __asm__ __volatile__("": : :"memory");
> 	return ret;

> Should work, but I do not have any sparc hardware for testing...
Thanks a lot! I'll try to find some sparc to test it :).


Kind regards,
Petr


More information about the ltp mailing list