xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cr16/ashud.cgs (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# cr16 testcase for ashud $sr,$dr
2# mach(): cr16
3
4	.include "testutils.inc"
5
6	start
7
8	.global ashud
9ashud:
10
11	movd  $0xf1234567, (r4,r3)
12	movw  $20,r5
13	ashud r5, (r4,r3)
14
15	cmpd $0x56700000, (r4,r3)
16	beq ok
17not_ok:
18	fail
19ok:
20	movd  $0xf1234567, (r4,r3)
21	movw  $-20,r5
22	ashud r5, (r4,r3)
23
24	test_h_grp "(r4,r3)", -238
25
26	pass
27