Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/sim/testsuite/bfin/issue109.s

17 lines
281 B
ArmAsm
Raw Normal View History

2023-03-06 14:48:14 +01: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