1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test amoxor.w instruction.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 TEST_CASE(2, a4, 0xffffffff80000000, \
17 li a0, 0xffffffff80000000; \
18 li a1, 0xfffffffffffff800; \
21 amoxor.w a4, a1, 0(a3); \
24 TEST_CASE(3, a5, 0x7ffff800, lw a5, 0(a3))
26 # try again after a cache miss
27 TEST_CASE(4, a4, 0x7ffff800, \
29 amoxor.w a4, a1, 0(a3); \
32 TEST_CASE(5, a5, 0xffffffffbffff801, lw a5, 0(a3))