sim: bfin: import testsuite
[deliverable/binutils-gdb.git] / sim / testsuite / sim / bfin / move.s
1 # Blackfin testcase for register move instructions
2 # mach: bfin
3
4
5 .include "testutils.inc"
6
7 start
8
9 .macro move reg0:req, reg1:req, clobber:req
10 imm32 \reg0, 0x5555aaaa
11 imm32 \reg1, 0x12345678
12 imm32 \clobber, 0x12345678
13 \reg0 = \reg1;
14 CC = \reg0 == \clobber;
15 if CC jump 1f;
16 fail
17 1:
18 .endm
19
20 move R0, R1, R2
21 move R0, R2, R3
22 move R0, R2, R4
23 move R0, R3, R5
24 move R0, R4, R6
25 move R0, R5, R7
26 move R0, R6, R1
27 move R0, R7, R2
28 move R7, R0, R1
29 move R7, R1, R2
30 move R7, R2, R3
31 move R7, R3, R4
32 move R7, R4, R5
33 move R7, R5, R6
34 move R7, R6, R0
35
36 pass
This page took 0.029938 seconds and 4 git commands to generate.