Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180615' into staging
[qemu.git] / tests / tcg / lm32 / test_bret.S
blob645210e4344bfb4128ada74c979d696c378c89d2
1 .include "macros.inc"
3 start
5 test_name BRET_1
6 mvi r1, 4
7 wcsr IE, r1
8 load ba mark
9 bret
10 tc_fail
11 bi 1f
13 mark:
14 tc_pass
17 test_name BRET_2
18 rcsr r3, IE
19 check_r3 5
21 test_name BRET_3
22 mvi r1, 0
23 wcsr IE, r1
24 load ba mark2
25 bret
26 tc_fail
27 bi 1f
29 mark2:
30 tc_pass
33 test_name BRET_4
34 rcsr r3, IE
35 check_r3 0
37 end