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