blob: 5e8072c5e8a7f6e23db6a2180a192f92cff0c162 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#*****************************************************************************
# fence.S
#-----------------------------------------------------------------------------
#
# Test fence instruction in a vf block.
#
#include "riscv_test.h"
#include "test_macros.h"
RVTEST_RV64UV
RVTEST_CODE_BEGIN
# make sure these don't choke at the beginning
fence
fence rw,io
fence io,rw
fence r,io
fence w,io
fence rw,i
fence rw,o
li a0,1
bne a0,x0,skip1
fence
skip1:
bne a0,x0,skip3
fence
skip3:
j pass
TEST_PASSFAIL
RVTEST_CODE_END
.data
RVTEST_DATA_BEGIN
TEST_DATA
src1:
.dword 1
.dword 2
.dword 3
.dword 4
src2:
.dword 4
.dword 3
.dword 2
.dword 1
dest:
.dword 0xdeadbeefcafebabe
.dword 0xdeadbeefcafebabe
.dword 0xdeadbeefcafebabe
.dword 0xdeadbeefcafebabe
RVTEST_DATA_END
|