initial commit
[riscv-tests.git] / isa / rv64uv / fence.S
1 #*****************************************************************************
2 # fence.S
3 #-----------------------------------------------------------------------------
4 #
5 # Test fence instruction in a vf block.
6 #
7
8 #include "riscv_test.h"
9 #include "test_macros.h"
10
11 RVTEST_RV64U
12 RVTEST_CODE_BEGIN
13
14 # make sure these don't choke at the beginning
15 fence.v.l
16 fence.v.g
17
18 li a0,1
19 bne a0,x0,skip1
20 fence.v.l
21 skip1:
22
23 bne a0,x0,skip3
24 fence.v.g
25 skip3:
26
27 j pass
28
29 TEST_PASSFAIL
30
31 RVTEST_CODE_END
32
33 .data
34 RVTEST_DATA_BEGIN
35
36 TEST_DATA
37
38 src1:
39 .dword 1
40 .dword 2
41 .dword 3
42 .dword 4
43 src2:
44 .dword 4
45 .dword 3
46 .dword 2
47 .dword 1
48 dest:
49 .dword 0xdeadbeefcafebabe
50 .dword 0xdeadbeefcafebabe
51 .dword 0xdeadbeefcafebabe
52 .dword 0xdeadbeefcafebabe
53
54 RVTEST_DATA_END