Re: PR28827, assertion building LLVM 9 on powerpc64le-linux-gnu
[binutils-gdb.git] / ld / testsuite / ld-riscv-elf / ifunc-reloc-pcrel.s
1 .text
2
3 .type foo_resolver, @function
4 foo_resolver:
5 ret
6 .size foo_resolver, .-foo_resolver
7
8 .globl foo
9 .type foo, %gnu_indirect_function
10 .set foo, foo_resolver
11
12 .globl bar
13 .type bar, @function
14 bar:
15 .L1:
16 auipc x1, %pcrel_hi (foo)
17 addi x1, x1, %pcrel_lo (.L1)
18 .L2:
19 auipc x2, %pcrel_hi (foo)
20 .ifdef __64_bit__
21 ld x2, %pcrel_lo (.L2) (x2)
22 .else
23 lw x2, %pcrel_lo (.L2) (x2)
24 .endif
25 ret
26 .size bar, .-bar