1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test LR/SC instructions.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 # get a unique core id
21 # for now, only run this on core 0
28 # make sure that sc without a reservation fails.
29 TEST_CASE( 2, a4, 1, \
34 # make sure that sc with the wrong reservation fails.
35 # TODO is this actually mandatory behavior?
36 TEST_CASE( 3, a4, 1, \
43 # have each core add its coreid to foo 1000 times
53 # wait for all cores to finish
61 # expected result is 1000*ncores*(ncores-1)/2
62 TEST_CASE( 4, a2, 0, \