1#include "macros.inc"
2
3test_suite s32c1i
4
5
6
7test s32c1i_nowrite
8
9 movi a2, 0x29
10 wsr a2, atomctl
11#endif
12 movi a2, 1f
13 movi a3, 1
14 wsr a3, scompare1
15 movi a1, 2
16 s32c1i a1, a2, 0
17 assert ne, a1, a3
18 l32i a1, a2, 0
19 assert eqi, a1, 3
20
21.data
22.align 4
231:
24 .word 3
25.text
26test_end
27
28test s32c1i_write
29
30 movi a2, 0x29
31 wsr a2, atomctl
32#endif
33 movi a2, 1f
34 movi a3, 3
35 wsr a3, scompare1
36 movi a1, 2
37 s32c1i a1, a2, 0
38 assert eq, a1, a3
39 l32i a1, a2, 0
40 assert eqi, a1, 2
41
42.data
43.align 4
441:
45 .word 3
46.text
47test_end
48
49#endif
50
51test_suite_end
52