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; \
28 amoxor.w a4, a1, 0(a3); \
31 TEST_CASE(3, a5, 0xffffffff7ffff800, ld a5, 0(a3))
33 # try again after a cache miss
34 TEST_CASE(4, a4, 0x000000007ffff800, \
45 amoxor.w a4, a1, 0(a3); \
48 TEST_CASE(5, a5, 0xffffffffbffff801, ld a5, 0(a3))