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 TEST_CASE( 3, a4, 1, \
42 # have each core add its coreid to foo 1000 times
52 # wait for all cores to finish
60 # expected result is 1000*ncores*(ncores-1)/2
61 TEST_CASE( 4, a2, 0, \