Commit | Line | Data |
---|---|---|
8507b6e7 MR |
1 | .text |
2 | ||
3 | bar: | |
4 | .space 0x10000 | |
5 | ||
6 | .ent foo | |
7 | .set mips16 | |
8 | foo: | |
9 | dla $2, . - 1 | |
10 | nop | |
11 | ld $2, . - 5 | |
12 | nop | |
13 | dla $2, . - 1 + 0x7c | |
14 | nop | |
15 | ld $2, . - 5 + 0xf8 | |
16 | nop | |
17 | dla $2, . - 1 + 0x80 | |
18 | ld $2, . - 5 + 0x100 | |
19 | dla $2, . - 1 - 0x4 | |
20 | ld $2, . - 5 - 0x4 | |
21 | dla $2, . - 1 + 0x7fff | |
22 | ld $2, . - 5 + 0x7fff | |
23 | dla $2, . - 1 - 0x8000 | |
24 | ld $2, . - 5 - 0x8000 | |
b32465c9 MR |
25 | |
26 | # Pad these to retain alignment between MIPS16 and MIPS16e2 code. | |
27 | 0: dla $2, . - 1 + 0x8000 | |
28 | 1: .insn | |
29 | .fill (12 - (1b - 0b)) / 2, 2, 0x6500 | |
30 | 0: ld $2, . - 5 + 0x8000 | |
31 | 1: .insn | |
32 | .fill (12 - (1b - 0b)) / 2, 2, 0x6500 | |
33 | 0: dla $2, . - 1 - 0x8001 | |
34 | 1: .insn | |
35 | .fill (12 - (1b - 0b)) / 2, 2, 0x6500 | |
36 | 0: ld $2, . - 5 - 0x8001 | |
37 | 1: .insn | |
38 | .fill (12 - (1b - 0b)) / 2, 2, 0x6500 | |
39 | ||
8507b6e7 MR |
40 | nop |
41 | .set nomips16 | |
42 | .end foo | |
43 | ||
44 | baz: | |
45 | .align 7, 0 | |
46 | .space 0xff00 | |
47 | ||
48 | # Force some (non-delay-slot) zero bytes, to make 'objdump' print ... | |
49 | .align 4, 0 | |
50 | .space 16 |