diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-05-22 18:19:48 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-05-22 18:19:48 -0700 |
commit | 7917324486685f738ea165642e25bfb997a69c2d (patch) | |
tree | ba669fefbe966ab104cb9a15eb2a9ecd43e342b4 /isa/rv64ui | |
parent | d4ab58796d5787bef6617e0fc760292ec3a4a79d (diff) | |
download | riscv-tests-7917324486685f738ea165642e25bfb997a69c2d.zip riscv-tests-7917324486685f738ea165642e25bfb997a69c2d.tar.gz riscv-tests-7917324486685f738ea165642e25bfb997a69c2d.tar.bz2 |
Enable LR/SC tests, even for uniprocessors
Diffstat (limited to 'isa/rv64ui')
-rw-r--r-- | isa/rv64ui/Makefrag | 4 | ||||
-rw-r--r-- | isa/rv64ui/lrsc.S | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/isa/rv64ui/Makefrag b/isa/rv64ui/Makefrag index e839118..4af2504 100644 --- a/isa/rv64ui/Makefrag +++ b/isa/rv64ui/Makefrag @@ -6,6 +6,7 @@ rv64ui_sc_tests = \ add addi addiw addw \ amoadd_d amoand_d amomax_d amomaxu_d amomin_d amominu_d amoor_d amoxor_d amoswap_d \ amoadd_w amoand_w amomax_w amomaxu_w amomin_w amominu_w amoor_w amoxor_w amoswap_w \ + lrsc \ and andi \ auipc \ beq bge bgeu blt bltu bne \ @@ -26,9 +27,6 @@ rv64ui_sc_tests = \ sub subw \ xor xori \ -rv64ui_mc_tests = \ - lrsc - rv64ui_p_tests = $(addprefix rv64ui-p-, $(rv64ui_sc_tests)) rv64ui_v_tests = $(addprefix rv64ui-v-, $(rv64ui_sc_tests)) diff --git a/isa/rv64ui/lrsc.S b/isa/rv64ui/lrsc.S index 6c4904e..9422739 100644 --- a/isa/rv64ui/lrsc.S +++ b/isa/rv64ui/lrsc.S @@ -32,6 +32,7 @@ TEST_CASE( 2, a4, 1, \ ) # make sure that sc with the wrong reservation fails. +# TODO is this actually mandatory behavior? TEST_CASE( 3, a4, 1, \ la a0, foo; \ add a1, a0, 1024; \ |