aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/algnbug2.s
blob: b06d5ad968c2b0be846d7c270d60d20a6c4f0b6d (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# mach: bfin

.include "testutils.inc"
	start


	M0 = 1 (X);
	loadsym I0, blocka;

	DISALGNEXCPT || NOP || R0 = [ I0 ++ ];
	DISALGNEXCPT || NOP || R1 = [ I0 ++ ];

	DBGA ( R0.L , 0xfeff );
	DBGA ( R0.H , 0xfcfd );
	DBGA ( R1.L , 0xfafb );
	DBGA ( R1.H , 0xf8f9 );

	loadsym I0, blocka;
	I0 += M0;

	DISALGNEXCPT || NOP || R0 = [ I0 ++ ];
	DISALGNEXCPT || NOP || R1 = [ I0 ++ ];

	DBGA ( R0.L , 0xfeff );
	DBGA ( R0.H , 0xfcfd );
	DBGA ( R1.L , 0xfafb );
	DBGA ( R1.H , 0xf8f9 );

	loadsym I0, blocka;
	I0 += M0;

	DISALGNEXCPT || NOP || R0 = [ I0 ++ ];
	DISALGNEXCPT || NOP || R1 = [ I0 ++ ];

	DBGA ( R0.L , 0xfeff );
	DBGA ( R0.H , 0xfcfd );
	DBGA ( R1.L , 0xfafb );
	DBGA ( R1.H , 0xf8f9 );

	loadsym I0, blocka;
	I0 += M0;

	DISALGNEXCPT || NOP || R0 = [ I0 ++ ];
	DISALGNEXCPT || NOP || R1 = [ I0 ++ ];

	DBGA ( R0.L , 0xfeff );
	DBGA ( R0.H , 0xfcfd );
	DBGA ( R1.L , 0xfafb );
	DBGA ( R1.H , 0xf8f9 );

	loadsym I0, blocka;
	I0 += M0;

	DISALGNEXCPT || NOP || R0 = [ I0 ++ ];
	DISALGNEXCPT || NOP || R1 = [ I0 ++ ];

	DBGA ( R0.H , 0xfcfd );
	DBGA ( R1.L , 0xfafb );
	DBGA ( R1.H , 0xf8f9 );

	pass

	.data;
	.align 8
blocka:
	.dw 0xfeff
	.dw 0xfcfd
	.dw 0xfafb
	.dw 0xf8f9