test.S revision 12771
1# See LICENSE for license details.
2
3#*****************************************************************************
4# amoadd_d.S
5#-----------------------------------------------------------------------------
6#
7# Test amoadd.d instruction.
8#
9
10#include "riscv_test.h"
11#include "test_macros.h"
12
13RVTEST_RV64U
14RVTEST_CODE_BEGIN
15
16la        a0, shared_var
17amoadd.w  t0, t1, 0(a0)
18lr.w      t2, 0(a0)
19//sc.w      t0, t1, 0(a0)
20
21RVTEST_CODE_END
22
23  .data
24shared_var:     .dword    0
25non_shared_var: .dword    0
26