Import binutils 2.18
[nacl-binutils.git] / gas / testsuite / gas / ppc / test1elf.asm
blob51f881cd5b023f1d67eb06eb66e0ef6dba4f283f
1 dnl divert(-1)
2 ifdef(`ELF64',
3 ` define(`WORD',`.llong')
4 define(`LDW',`ld')')
5 ifdef(`ELF32',
6 ` define(`WORD',`.long')
7 define(`LDW',`lwz')')
8 dnl divert(0) dnl
10 define(`nl',`
11 ') nl nl nl nl nl nl
13 .section ".data"
14 dsym0: WORD 0xdeadbeef
15 dsym1:
17 ifdef(`ELF64',`
18 .section ".toc"
19 .L_tsym0:
20 .tc ignored0[TC],dsym0
21 .L_tsym1:
22 .tc ignored1[TC],dsym1
23 .L_tsym2:
24 .tc ignored2[TC],usym0
25 .L_tsym3:
26 .tc ignored3[TC],usym1
27 .L_tsym4:
28 .tc ignored4[TC],esym0
29 .L_tsym5:
30 .tc ignored5[TC],esym1
33 .section ".text"
34 LDW 3,dsym0@l(3)
35 LDW 3,dsym1@l(3)
36 LDW 3,usym0@l(3)
37 LDW 3,usym1@l(3)
38 LDW 3,esym0@l(3)
39 LDW 3,esym1@l(3)
41 ifdef(`ELF64',`
42 LDW 3,.L_tsym0@toc(2)
43 LDW 3,.L_tsym1@toc(2)
44 LDW 3,.L_tsym2@toc(2)
45 LDW 3,.L_tsym3@toc(2)
46 LDW 3,.L_tsym4@toc(2)
47 LDW 3,.L_tsym5@toc(2)
49 lis 4,.L_tsym5@toc@ha
50 LDW 3,.L_tsym5@toc@l(2)
53 li 3,dsym1-dsym0
54 li 3,dsym0-dsym1
55 li 3,usym1-usym0
56 li 3,usym0-usym1
57 li 3,dsym0-usym0
58 li 3,usym0-dsym0
60 li 3,dsym0@l
61 li 3,dsym0@h
62 li 3,dsym0@ha
63 ifdef(`ELF64',`
64 li 3,dsym0@higher
65 li 3,dsym0@highera
66 li 3,dsym0@highest
67 li 3,dsym0@highesta
70 li 3,usym0-usym1@l
71 li 3,usym0-usym1@h
72 li 3,usym0-usym1@ha
73 ifdef(`ELF64',`
74 li 3,usym0-usym1@higher
75 li 3,usym0-usym1@highera
76 li 3,usym0-usym1@highest
77 li 3,usym0-usym1@highesta
80 LDW 3,dsym1-dsym0@l(4)
82 LDW 3,.text@l(0)
84 .section ".data"
85 usym0: WORD 0xcafebabe
86 usym1:
88 datpt: .long jk-.+10000000
89 dat0: .long jk-dat1
90 dat1: .long jk-dat1
91 dat2: .long jk-dat1
92 ifdef(`ELF64',`
93 dat3: .llong jk-dat1
94 dat4: .llong jk-dat1