Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / mqsllhi.cgs
blob21379f2b0b812cd413ce1607668e933d16cbe44f
1 # frv testcase for mqsllhi $FRi,#u6,$FRj
2 # mach: fr450
4         .include "testutils.inc"
6         start
8         .global mqsllhi
9 mqsllhi:
10         set_fr_iimmed   0x0001,0x0002,fr4
11         set_fr_iimmed   0x0003,0x0004,fr5
12         mqsllhi         fr4,#1,fr6
13         test_fr_limmed  0x0002,0x0004,fr6
14         test_fr_limmed  0x0006,0x0008,fr7
16         set_fr_iimmed   0xffff,0xfffe,fr4
17         set_fr_iimmed   0xfffc,0xfff8,fr5
18         mqsllhi         fr4,#1,fr6
19         test_fr_limmed  0xfffe,0xfffc,fr6
20         test_fr_limmed  0xfff8,0xfff0,fr7
22         set_fr_iimmed   0xffff,0xfffe,fr4
23         set_fr_iimmed   0xfffc,0xfff8,fr5
24         mqsllhi         fr4,#12,fr6
25         test_fr_limmed  0xf000,0xe000,fr6
26         test_fr_limmed  0xc000,0x8000,fr7
28         set_fr_iimmed   0x1234,0x5678,fr4
29         set_fr_iimmed   0x9abc,0xdef0,fr5
30         mqsllhi         fr4,#12,fr6
31         test_fr_limmed  0x4000,0x8000,fr6
32         test_fr_limmed  0xc000,0x0000,fr7
34         set_fr_iimmed   0x1234,0x5678,fr4
35         set_fr_iimmed   0x9abc,0xdef0,fr5
36         mqsllhi         fr4,#16,fr6
37         test_fr_limmed  0x1234,0x5678,fr6
38         test_fr_limmed  0x9abc,0xdef0,fr7
40         pass