This commit was manufactured by cvs2svn to create branch 'gdb_7_0-branch'.
[external/binutils.git] / sim / testsuite / sim / cr16 / ashub_i.cgs
1 # cr16 testcase for ashub $sr,$dr
2 # mach(): cr16
3
4         .include "testutils.inc"
5
6         start
7
8         .global ashub
9 ashub:
10
11         movw  $0x12f1, r4
12         ashub $4, r4
13
14         cmpw $0x1210, r4
15         beq ok
16 not_ok:
17         fail
18 ok:
19         movw  $0x12f1, r4
20         ashub $-4, r4
21
22         test_h_gr r4, 0x12ff
23
24         pass