test/atomic: add 128-bit atomic compare exchange test
authorPhil Yang <phil.yang@arm.com>
Fri, 18 Oct 2019 11:21:29 +0000 (19:21 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 21 Oct 2019 08:06:38 +0000 (10:06 +0200)
commitfa3253c534b17ec9ef59f2bcbfeb51f01d0c1d96
tree4a22afc4d15a36d029cea3c91ef26fff4d648496
parent7e2c3e17fe2cf6e7110261ff16280ab51ca6493c
test/atomic: add 128-bit atomic compare exchange test

Add 128-bit atomic compare and swap test for aarch64 and x86_64.
Extend the test iteration from 10 thousand to 1 million times to test
the stability of the atomic APIs.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Gage Eads <gage.eads@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
Tested-by: Jerin Jacob <jerinj@marvell.com>
app/test/test_atomic.c