aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/move.s
blob: b8f41c8bfbcf66b0728e7cdda9c1bb50e652e232 (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
# Blackfin testcase for register move instructions
# mach: bfin


	.include "testutils.inc"

	start

	.macro move reg0:req, reg1:req, clobber:req
	imm32 \reg0, 0x5555aaaa
	imm32 \reg1, 0x12345678
	imm32 \clobber, 0x12345678
	\reg0 = \reg1;
	CC = \reg0 == \clobber;
	if CC jump 1f;
	fail
1:
	.endm

	move R0, R1, R2
	move R0, R2, R3
	move R0, R2, R4
	move R0, R3, R5
	move R0, R4, R6
	move R0, R5, R7
	move R0, R6, R1
	move R0, R7, R2
	move R7, R0, R1
	move R7, R1, R2
	move R7, R2, R3
	move R7, R3, R4
	move R7, R4, R5
	move R7, R5, R6
	move R7, R6, R0

	pass