1 #*****************************************************************************
3 #-----------------------------------------------------------------------------
5 # Test LR/SC instructions.
8 #include "riscv_test.h"
9 #include "test_macros.h"
14 # wait for all cores to boot
22 # make sure that sc without a reservation fails.
23 TEST_CASE( 2, a4, 1, \
28 # make sure that sc with the wrong reservation fails.
29 TEST_CASE( 3, a4, 1, \
36 # have each core add its coreid to foo 1000 times
46 # wait for all cores to finish
54 # expected result is 1000*ncores*(ncores-1)/2
55 TEST_CASE( 4, a2, 0, \