Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / scani.cgs
blob97175dc1051b052115f265e1f1c27bc425d5869f
1 # frv testcase for scani $GRi,$s12,$GRk
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global scani
9 scani:
10         set_gr_limmed   0xffff,0xfeaa,gr7
11         scani           gr7,0x2aa,gr9
12         test_gr_immed   0,gr9
13         test_gr_limmed  0xffff,0xfeaa,gr7
15         set_gr_limmed   0xffff,0xfeaa,gr7
16         scani           gr7,0x2ab,gr9
17         test_gr_immed   0,gr9
18         test_gr_limmed  0xffff,0xfeaa,gr7
20         set_gr_limmed   0x0000,0x0155,gr7
21         scani           gr7,0x2aa,gr9
22         test_gr_immed   63,gr9
23         test_gr_limmed  0x0000,0x0155,gr7
25         set_gr_limmed   0x0000,0x0155,gr7
26         scani           gr7,0x2ab,gr9
27         test_gr_immed   63,gr9
28         test_gr_limmed  0x0000,0x0155,gr7
30         set_gr_limmed   0x7fff,0xffff,gr7
31         scani           gr7,-1,gr9
32         test_gr_immed   0,gr9
33         test_gr_limmed  0x7fff,0xffff,gr7
35         set_gr_limmed   0xbfff,0xffff,gr7
36         scani           gr7,-1,gr9
37         test_gr_immed   1,gr9
38         test_gr_limmed  0xbfff,0xffff,gr7
40         set_gr_limmed   0xfffe,0xffff,gr7
41         scani           gr7,-1,gr9
42         test_gr_immed   15,gr9
43         test_gr_limmed  0xfffe,0xffff,gr7
45         set_gr_limmed   0xffff,0xfffd,gr7
46         scani           gr7,-1,gr9
47         test_gr_immed   30,gr9
48         test_gr_limmed  0xffff,0xfffd,gr7
50         set_gr_limmed   0xdead,0xbeef,gr7
51         scani           gr7,-2048,gr9
52         test_gr_immed   2,gr9
53         test_gr_limmed  0xdead,0xbeef,gr7
55         pass