Revert "Fix the test for PR 18963 so that it will work on 16-bit targets."
[deliverable/binutils-gdb.git] / ld / testsuite / ld-sparc / gotop64.s
CommitLineData
739f7f82
DM
1 .data
2 .align 4096
3 .globl sym
4sym: .word 0x12345678
5
00c50991
DM
6local_sym:
7 .word 0xdeadbeef
8
739f7f82
DM
9 .text
10 .align 4096
11.LLGETPC0:
12 retl
13 add %o7, %l7, %l7
14
15 .globl foo
16 .type foo,#function
17 .proc 04
18foo:
19 save %sp, -160, %sp
20 sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7
21 call .LLGETPC0
22 add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7
23 nop
24 sethi %gdop_hix22(sym), %l1
25 nop
26 xor %l1, %gdop_lox10(sym), %l1
27 nop
28 ldx [%l7 + %l1], %i0, %gdop(sym)
29 nop
00c50991
DM
30 sethi %gdop_hix22(local_sym), %l1
31 nop
32 xor %l1, %gdop_lox10(local_sym), %l1
33 nop
34 ldx [%l7 + %l1], %i0, %gdop(local_sym)
35 nop
739f7f82
DM
36 ret
37 restore
This page took 0.662559 seconds and 4 git commands to generate.