1.include "macros.inc" 2 3test_suite s32c1i 4 5test s32c1i_nowrite 6 movi a2, 1f 7 movi a3, 1 8 wsr a3, scompare1 9 movi a1, 2 10 s32c1i a1, a2, 0 11 assert ne, a1, a3 12 l32i a1, a2, 0 13 assert eqi, a1, 3 14 15.data 16.align 4 171: 18 .word 3 19.text 20test_end 21 22test s32c1i_write 23 movi a2, 1f 24 movi a3, 3 25 wsr a3, scompare1 26 movi a1, 2 27 s32c1i a1, a2, 0 28 assert eq, a1, a3 29 l32i a1, a2, 0 30 assert eqi, a1, 2 31 32.data 33.align 4 341: 35 .word 3 36.text 37test_end 38 39test_suite_end 40