Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / fblelr.cgs
blob92a47bc970f321ec4619a0499009106bea175a2f
1 # frv testcase for fblelr $FCCi,$hint
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global fblelr
9 fblelr:
10         set_spr_addr    bad,lr
11         set_fcc         0x0 0
12         fblelr          fcc0,0
14         set_spr_addr    bad,lr
15         set_fcc         0x1 1
16         fblelr          fcc1,1
18         set_spr_addr    bad,lr
19         set_fcc         0x2 2
20         fblelr          fcc2,2
22         set_spr_addr    bad,lr
23         set_fcc         0x3 3
24         fblelr          fcc3,3
26         set_spr_addr    ok5,lr
27         set_fcc         0x4 0
28         fblelr          fcc0,0
29         fail
30 ok5:
31         set_spr_addr    ok6,lr
32         set_fcc         0x5 1
33         fblelr          fcc1,1
34         fail
35 ok6:
36         set_spr_addr    ok7,lr
37         set_fcc         0x6 2
38         fblelr          fcc2,2
39         fail
40 ok7:
41         set_spr_addr    ok8,lr
42         set_fcc         0x7 3
43         fblelr          fcc3,3
44         fail
45 ok8:
46         set_spr_addr    ok9,lr
47         set_fcc         0x8 0
48         fblelr          fcc0,0
49         fail
50 ok9:
51         set_spr_addr    oka,lr
52         set_fcc         0x9 1
53         fblelr          fcc1,1
54         fail
55 oka:
56         set_spr_addr    okb,lr
57         set_fcc         0xa 2
58         fblelr          fcc2,2
59         fail
60 okb:
61         set_spr_addr    okc,lr
62         set_fcc         0xb 3
63         fblelr          fcc3,3
64         fail
65 okc:
66         set_spr_addr    okd,lr
67         set_fcc         0xc 0
68         fblelr          fcc0,0
69         fail
70 okd:
71         set_spr_addr    oke,lr
72         set_fcc         0xd 1
73         fblelr          fcc1,1
74         fail
75 oke:
76         set_spr_addr    okf,lr
77         set_fcc         0xe 2
78         fblelr          fcc2,2
79         fail
80 okf:
81         set_spr_addr    okg,lr
82         set_fcc         0xf 3
83         fblelr          fcc3,3
84         fail
85 okg:
86         pass
87 bad:
88         fail