Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / cr16 / loadmp.cgs
blob6003c3f5128102bb1311ef7f4c6a5f8d7c136ebe
1 # cr16 testcase for loadmp count
2 # mach(): cr16
4         .include "testutils.inc"
6         start
8         .global loadmp
9 loadmp:
10         movd $0x1000, (r1,r0)
11         movw $0x12, r2
12         storw r2, 0x1000
13         movw $0x34, r3
14         storw r3, 0x1002
15         movw $0x56, r4
16         storw r4, 0x1004
17         movw $0x78, r5
18         storw r5, 0x1006
20         loadmp $4
22         cmpw  $0x12,r2
23         beq ok1
24 not_ok:
25         fail
26 ok1:
27         cmpw $0x34,r3
28         beq ok2
29         br not_ok
30 ok2:
31         cmpw $0x56,r4
32         beq ok3
33         br not_ok
34 ok3:
35         cmpw $0x78,r5
36         beq ok4
37         br not_ok
38 ok4:
39         pass