aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/wtf.s
blob: 2ec850754b1e296961a8450491229cdf8ca4181f (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
# mach: bfin

.include "testutils.inc"
	start

	loadsym p0, foo;
	r2 = p0;
	r2 += 4;
	[p0++]=p0;
	loadsym i0, foo;
	r0=[i0];
	R3 = P0;
	CC = R2 == R3
	if ! CC jump _fail;
	R3 = I0;
	CC = R0 == R3;
	if ! CC jump _fail;

_halt0:
	pass;
_fail:
	fail;

	.data
foo:
	.space (0x10)