Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / cr16 / ashud.cgs
blobc9511da49076da7abee95e52227d20b1ed3fc4ac
1 # cr16 testcase for ashud $sr,$dr
2 # mach(): cr16
4         .include "testutils.inc"
6         start
8         .global ashud
9 ashud:
11         movd  $0xf1234567, (r4,r3)
12         movw  $20,r5
13         ashud r5, (r4,r3)
15         cmpd $0x56700000, (r4,r3)
16         beq ok
17 not_ok:
18         fail
19 ok:
20         movd  $0xf1234567, (r4,r3)
21         movw  $-20,r5
22         ashud r5, (r4,r3)
24         test_h_grp "(r4,r3)", -238
26         pass