xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cr16/ashuw_i.cgs (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1# cr16 testcase for ashuw $sr,$dr
2# mach(): cr16
3
4	.include "testutils.inc"
5
6	start
7
8	.global ashuw
9ashuw:
10
11	movw  $0x1ff1, r4
12	ashuw $12, r4
13
14	cmpw $0x1000, r4
15	beq ok
16not_ok:
17	fail
18ok:
19	movw  $0x1ff1, r4
20	ashuw $-12, r4
21
22	test_h_gr r4, 0x1
23
24	pass
25