gas/
[deliverable/binutils-gdb.git] / gas / testsuite / gas / mips / empic3_g1.s
CommitLineData
a657e7c1
CD
1# Check PC-relative HI/LO relocs relocs for -membedded-pic when HI and
2# LO are split over a 32K boundary.
3
4 .text
5 .set noreorder
6
7 SYM_TO_TEST = g1
8
9 .globl ext
10
11 .org 0x00000
12 .globl g1
13g1:
14l1:
15
16 .org 0x08000
17 .globl fn
18 .ent fn
19fn:
20 .org (0x10000 - 4)
21 la $2, SYM_TO_TEST - fn # expands to 2 instructions
22
23 .org (0x18000 - 4)
24 la $2, SYM_TO_TEST - fn # expands to 2 instructions
25
26 .org (0x20000 - 4)
27 la $2, (SYM_TO_TEST - fn)($3) # expands to 3 instructions
28
29 .org (0x28000 - 4)
30 la $2, (SYM_TO_TEST - fn)($3) # expands to 3 instructions
31
32 .org (0x30000 - 8)
33 la $2, (SYM_TO_TEST - fn)($3) # expands to 3 instructions
34
35 .org (0x38000 - 8)
36 la $2, (SYM_TO_TEST - fn)($3) # expands to 3 instructions
37
38 .end fn
39
40 .org 0x40000
41 .globl g2
42g2:
43l2:
44
45# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
46 .space 8
This page took 0.088444 seconds and 4 git commands to generate.