1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test LR/SC instructions.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 # wait for all cores to boot
24 # make sure that sc without a reservation fails.
25 TEST_CASE( 2, a4, 1, \
30 # make sure that sc with the wrong reservation fails.
31 TEST_CASE( 3, a4, 1, \
38 # have each core add its coreid to foo 1000 times
48 # wait for all cores to finish
56 # expected result is 1000*ncores*(ncores-1)/2
57 TEST_CASE( 4, a2, 0, \