1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test amoadd.w instruction.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 TEST_CASE(2, a4, 0x80000000, \
28 amoadd.w a4, a1, 0(a3); \
31 TEST_CASE(3, a5, 0x7ffff800, lw a5, 0(a3))
33 # try again after a cache miss
34 TEST_CASE(4, a4, 0x7ffff800, \
45 amoadd.w a4, a1, 0(a3); \
48 TEST_CASE(5, a5, 0xfffff800, lw a5, 0(a3))