aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/cir.s
blob: efbb9d4dda82e352d7cad2dc84a7b43a4aea5583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Blackfin testcase for circular buffer limits
# mach: bfin

	.include "testutils.inc"

	start

	B0 = 0 (X);
	I0 = 0x1100 (X);
	L0 = 0x10c0 (X);
	M0 = 0 (X);
	I0 += M0;
	R0 = I0;

	R1 = 0x40 (Z);
	CC = R1 == R0
	if CC jump 1f;
	fail
1:
	pass