data/method/gdb/gdb-13.2/sim/testsuite/bfin/issue109.s

17 lines
281 B
ArmAsm
Raw Normal View History

2024-01-29 10:44:43 +08:00
//Statement of problem...
//16-bit ashift and lshift uses a 6-bit signed magnitude, which gives a
//range from -32 to 31. test the boundary.
# mach: bfin
.include "testutils.inc"
start
R1.L = 0x8000;
R0.L = -32;
R2.L = ASHIFT R1.L BY R0.L;
DBGA ( R2.L , 0xffff );
pass