summaryrefslogtreecommitdiff
path: root/tests/test-progs/asmtest/src/riscv/isa/rv64ua/test.S
blob: 9e6ab68e84e6ad0fb6a0ceb971ee8369f23ec212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# See LICENSE for license details.

#*****************************************************************************
# amoadd_d.S
#-----------------------------------------------------------------------------
#
# Test amoadd.d instruction.
#

#include "riscv_test.h"
#include "test_macros.h"

RVTEST_RV64U
RVTEST_CODE_BEGIN

la        a0, shared_var
amoadd.w  t0, t1, 0(a0)
lr.w      t2, 0(a0)
//sc.w      t0, t1, 0(a0)

RVTEST_CODE_END

  .data
shared_var:     .dword    0
non_shared_var: .dword    0