qcow2: Fix corruption on write_zeroes with MAY_UNMAP
[qemu/ar7.git] / tests / tcg / lm32 / test_sri.S
blobc1be907b5befef78a560f21e1102622a45a81a6f
1 .include "macros.inc"
3 start
5 test_name SRI_1
6 mvi r1, 1
7 sri r3, r1, 0
8 check_r3 1
10 test_name SRI_2
11 mvi r1, 0
12 sri r3, r1, 1
13 check_r3 0
15 test_name SRI_3
16 load r1 0x40000000
17 sri r3, r1, 30
18 check_r3 1
20 test_name SRI_4
21 load r1 0x40000000
22 sri r3, r1, 31
23 check_r3 0
25 test_name SRI_5
26 mvi r3, 2
27 sri r3, r3, 2
28 check_r3 0
30 test_name SRI_6
31 mvi r1, 0xfffffff0
32 sri r3, r1, 2
33 check_r3 0xfffffffc
35 test_name SRI_7
36 mvi r1, 0xfffffff0
37 sri r3, r1, 4
38 check_r3 0xffffffff
40 end