1// Test byte-align instructions 2# mach: bfin 3 4.include "testutils.inc" 5 start 6 7 8 R0.L = 0xabcd; 9 R0.H = 0x1234; 10 R1.L = 0x4567; 11 R1.H = 0xdead; 12 13 R2 = ALIGN8 ( R1 , R0 ); 14 DBGA ( R2.L , 0x34ab ); 15 DBGA ( R2.H , 0x6712 ); 16 17 R2 = ALIGN16 ( R1 , R0 ); 18 DBGA ( R2.L , 0x1234 ); 19 DBGA ( R2.H , 0x4567 ); 20 21 R2 = ALIGN24 ( R1 , R0 ); 22 DBGA ( R2.L , 0x6712 ); 23 DBGA ( R2.H , 0xad45 ); 24 25 pass 26