Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
[qemu/ar7.git] / tests / tcg / lm32 / test_srui.S
blob872c374121fc7088b27673993734bf547218cbd2
1 .include "macros.inc"
3 start
5 test_name SRUI_1
6 mvi r1, 1
7 srui r3, r1, 0
8 check_r3 1
10 test_name SRUI_2
11 mvi r1, 0
12 srui r3, r1, 1
13 check_r3 0
15 test_name SRUI_3
16 load r1 0x40000000
17 srui r3, r1, 30
18 check_r3 1
20 test_name SRUI_4
21 load r1 0x40000000
22 srui r3, r1, 31
23 check_r3 0
25 test_name SRUI_5
26 mvi r3, 2
27 srui r3, r3, 2
28 check_r3 0
30 test_name SRUI_6
31 mvi r1, 0xfffffff0
32 srui r3, r1, 2
33 check_r3 0x3ffffffc
35 test_name SRUI_7
36 mvi r1, 0xfffffff0
37 srui r3, r1, 4
38 check_r3 0x0fffffff
40 end