aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/s20.s
blob: 7f97d220a1916169df5d1f3a54f69d4b3a45a595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//  Test  byte-align instructions
# mach: bfin

.include "testutils.inc"
	start


	R0.L = 0xabcd;
	R0.H = 0x1234;
	R1.L = 0x4567;
	R1.H = 0xdead;

	R2 = ALIGN8 ( R1 , R0 );
	DBGA ( R2.L , 0x34ab );
	DBGA ( R2.H , 0x6712 );

	R2 = ALIGN16 ( R1 , R0 );
	DBGA ( R2.L , 0x1234 );
	DBGA ( R2.H , 0x4567 );

	R2 = ALIGN24 ( R1 , R0 );
	DBGA ( R2.L , 0x6712 );
	DBGA ( R2.H , 0xad45 );

	pass