1// check the imm7 bit constants bounds 2# mach: bfin 3 4.include "testutils.inc" 5 start 6 7 R0 = 63; 8 DBGA ( R0.L , 63 ); 9 R0 = -64; 10 DBGA ( R0.L , 0xffc0 ); 11 P0 = 63; 12 R0 = P0; DBGA ( R0.L , 63 ); 13 P0 = -64; 14 R0 = P0; DBGA ( R0.L , 0xffc0 ); 15 16// check loading imm16 into h/l halves 17 R0.L = 0x1111; 18 DBGA ( R0.L , 0x1111 ); 19 20 R0.H = 0x1111; 21 DBGA ( R0.H , 0x1111 ); 22 23 P0.L = 0x2222; 24 R0 = P0; DBGA ( R0.L , 0x2222 ); 25 26 P0.H = 0x2222; 27 R0 = P0; DBGA ( R0.H , 0x2222 ); 28 29 pass 30