ld: Move the .note.build-id section to near the start of the memory map.
[binutils-gdb.git] / sim / testsuite / bfin / unlink.S
blob978d39e9ff2d02b45cb1d42cf487324e92500759
1 # Blackfin testcase for unlink insn with any immediate value
2 # mach: bfin
3 # sim: --environment operating
5 #include "test.h"
6         .include "testutils.inc"
8         start
10         /* Set up exception handler */
11         imm32 P4, EVT3;
12         loadsym R1, _evx;
13         [P4] = R1;
15         /* Lower to the code we want to single step through */
16         loadsym P1, _usr;
17         RETI = P1;
19         imm32 FP, 0x800000
20         imm32 R0, 0x12345678;
21         [FP] = R0;
22         imm32 R0, 0x87654321;
23         [FP + 4] = R0;
25         RTI;
27 _usr:
28         imm32 FP, 0x800000
30         .byte 0x01, 0xe8
31 .Linsn:
32         .byte 0, 0
34         imm32 R0, 0x12345678;
35         R1 = FP;
36         CC = R0 == R1;
37         IF !CC jump _fail;
39         imm32 R0, 0x87654321;
40         R1 = RETS;
41         CC = R0 == R1;
42         IF !CC jump _fail;
44         imm32 R0, 0x800008;
45         R1 = SP;
46         CC = R0 == R1;
47         IF !CC jump _fail;
49         loadsym P0, .Linsn;
50         R0 = W[P0];
51         R0 += 1;
52         W[P0] = R0;
53         SSYNC;
55         R0 = R0.L;
56         CC = R0 == 0;
57         IF CC jump _pass;
58         jump _usr;
60         .align 4;
61 _evx:
62         dbg_fail;
64 _pass:
65         dbg_pass;
67 _fail:
68         dbg_fail;