gdb/testsuite: Reduce gdb.threads/threadcrash.exp reliance on libc symbols
[binutils-gdb.git] / sim / testsuite / cr16 / ashub.cgs
blobef3e94eff9a617a207648f14dc98344859458554
1 # cr16 testcase for ashub $sr,$dr
2 # mach(): cr16
4         .include "testutils.inc"
6         start
8         .global ashub
9 ashub:
11         movw  $0x12f1, r4
12         movw  $4,r5
13         ashub       r5, r4
15         cmpw $0x1210, r4
16         beq ok
17 not_ok:
18         fail
19 ok:
20         movw  $0x12f1, r4
21         movw  $-4,r5
22         ashub       r5, r4
24         test_h_gr r4, 0x12ff
26         pass