MIPS/GAS: Split Loongson MMI Instructions from loongson2f/3a
[deliverable/binutils-gdb.git] / gas / testsuite / gas / mips / elf-rel28.s
CommitLineData
14c80123
MR
1# By default test ld/sd.
2
3# If defined, test lld/scd instead.
4 .ifdef tlldscd
5 .macro ld ops:vararg
6 lld \ops
7 .endm
8 .macro sd ops:vararg
9 scd \ops
10 .endm
11 .endif
12
e391c024
RS
13 .ent foo
14foo:
15 # Many of these do not make conceptual sense, but they should
16 # at least assemble.
17 ld $4,%call_hi(bar)($4)
18 ld $4,%call_lo(bar)($4)
19 ld $4,%call16(bar)($4)
20 ld $4,%got_disp(bar)($4)
21 ld $4,%got_page(bar)($4)
22 ld $4,%got_ofst(bar)($4)
23 ld $4,%got_hi(bar)($4)
24 ld $4,%got_lo(bar)($4)
25 ld $4,%got(bar)($4)
26 ld $4,%gp_rel(bar)($4)
27 ld $4,%half(bar)($4)
28 ld $4,%highest(bar)($4)
29 ld $4,%higher(bar)($4)
30 ld $4,%neg(bar)($4)
31 ld $4,%tlsgd(bar)($4)
32 ld $4,%tlsldm(bar)($4)
33 ld $4,%dtprel_hi(bar)($4)
34 ld $4,%dtprel_lo(bar)($4)
35 ld $4,%tprel_hi(bar)($4)
36 ld $4,%tprel_lo(bar)($4)
37 ld $4,%gottprel(bar)($4)
38
39 sd $4,%call_hi(bar)($4)
40 sd $4,%call_lo(bar)($4)
41 sd $4,%call16(bar)($4)
42 sd $4,%got_disp(bar)($4)
43 sd $4,%got_page(bar)($4)
44 sd $4,%got_ofst(bar)($4)
45 sd $4,%got_hi(bar)($4)
46 sd $4,%got_lo(bar)($4)
47 sd $4,%got(bar)($4)
48 sd $4,%gp_rel(bar)($4)
49 sd $4,%half(bar)($4)
50 sd $4,%highest(bar)($4)
51 sd $4,%higher(bar)($4)
52 sd $4,%neg(bar)($4)
53 sd $4,%tlsgd(bar)($4)
54 sd $4,%tlsldm(bar)($4)
55 sd $4,%dtprel_hi(bar)($4)
56 sd $4,%dtprel_lo(bar)($4)
57 sd $4,%tprel_hi(bar)($4)
58 sd $4,%tprel_lo(bar)($4)
59 sd $4,%gottprel(bar)($4)
60 .end foo
ef2b5578
MR
61
62# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
63 .align 2
64 .space 8
This page took 0.455838 seconds and 4 git commands to generate.