Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / fr550 / mabshs.cgs
blob9168df8981b3f109638ff37c5f63e160553139ca
1 # frv testcase for mabshs $FRj,$FRk
2 # mach: all
4         .include "../testutils.inc"
6         start
8         .global mabshs
9 mabshs:
10         set_fr_iimmed   0x0000,0x0000,fr10
11         mabshs          fr10,fr11
12         test_fr_limmed  0x0000,0x0000,fr11
13         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
14         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
15         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
16         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
18         set_fr_iimmed   0x0001,0xffff,fr10
19         mabshs          fr10,fr11
20         test_fr_limmed  0x0001,0x0001,fr11
21         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
22         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
23         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
24         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
26         set_fr_iimmed   0x7fff,0x8001,fr10
27         mabshs          fr10,fr11
28         test_fr_limmed  0x7fff,0x7fff,fr11
29         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
30         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
31         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
32         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
34         set_spr_immed   0,msr0
35         set_fr_iimmed   0x7fff,0x8000,fr10
36         mabshs          fr10,fr11
37         test_fr_limmed  0x7fff,0x7fff,fr11
38         test_spr_bits   0x3c,2,0x4,msr0         ; msr0.sie is set
39         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
40         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
41         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
43         set_spr_immed   0,msr0
44         set_fr_iimmed   0x8000,0x7fff,fr10
45         mabshs          fr10,fr11
46         test_fr_limmed  0x7fff,0x7fff,fr11
47         test_spr_bits   0x3c,2,0x8,msr0         ; msr0.sie is set
48         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
49         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
50         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
52         set_spr_immed   0,msr0
53         set_fr_iimmed   0x7fff,0x8000,fr10
54         set_fr_iimmed   0x8000,0x7fff,fr11
55         mabshs.p        fr10,fr12
56         mabshs          fr11,fr13
57         test_fr_limmed  0x7fff,0x7fff,fr12
58         test_fr_limmed  0x7fff,0x7fff,fr13
59         test_spr_bits   0x3c,2,0xc,msr0         ; msr0.sie is set
60         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
61         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
62         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
64         pass