New sim testsuite for Fujitsu FRV. Contributed by Red Hat.
[external/binutils.git] / sim / testsuite / sim / frv / movsg.cgs
1 # frv testcase for movsg $FRk,$GRj
2 # mach: all
3
4         .include "testutils.inc"
5
6         start
7
8         .global movsg
9 movsg:
10         set_spr_limmed  0xdead,0xbeef,lcr
11         set_gr_limmed   0,0,gr8
12         movsg lcr,gr8
13         test_gr_limmed  0xdead,0xbeef,gr8
14         test_spr_limmed 0xdead,0xbeef,lcr
15
16         pass