diff options
Diffstat (limited to 'sim/testsuite/bfin/issue109.s')
-rw-r--r-- | sim/testsuite/bfin/issue109.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sim/testsuite/bfin/issue109.s b/sim/testsuite/bfin/issue109.s new file mode 100644 index 0000000..65b78b7 --- /dev/null +++ b/sim/testsuite/bfin/issue109.s @@ -0,0 +1,16 @@ +//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 |