xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/bfin/issue109.s (revision 4b169a6ba595ae283ca507b26b15fdff40495b1c)
1//Statement of problem...
2//16-bit ashift and lshift uses a 6-bit signed  magnitude, which gives a
3//range from -32 to 31. test the boundary.
4# mach: bfin
5
6.include "testutils.inc"
7	start
8
9
10	R1.L = 0x8000;
11	R0.L = -32;
12	R2.L = ASHIFT R1.L BY R0.L;
13
14	DBGA ( R2.L , 0xffff );
15
16	pass
17