[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc32-ifunc-nonpreemptible-nopic.s
blob179f79efc6ff1ac068e8c5fa226f6f58705c5f40
1 # REQUIRES: ppc
2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o
3 # RUN: ld.lld %t.o -o %t
4 # RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELOC %s
5 # RUN: llvm-readelf -s %t | FileCheck --check-prefix=SYM %s
6 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
8 # RELOC: .rela.dyn {
9 # RELOC-NEXT: 0x10020110 R_PPC_IRELATIVE - 0x100100E0
10 # RELOC-NEXT: }
12 # SYM: 10010100 0 FUNC GLOBAL DEFAULT {{.*}} func
13 # HEX: 0x10020110 10010100
15 # CHECK: Disassembly of section .text:
16 # CHECK: <.text>:
17 # CHECK-NEXT: 100100e0: blr
18 # CHECK: <_start>:
19 # CHECK-NEXT: bl 0x100100f0
20 # CHECK-NEXT: lis 9, 4097
21 # CHECK-NEXT: addi 9, 9, 256
22 # CHECK-EMPTY:
23 # CHECK-NEXT: <00000000.plt_call32.func>:
24 ## 0x10020110 = 65536*4098+272
25 # CHECK-NEXT: lis 11, 4098
26 # CHECK-NEXT: lwz 11, 272(11)
28 .text
29 .globl func
30 .type func, @gnu_indirect_function
31 func:
32 blr
34 .globl _start
35 _start:
36 bl func
38 lis 9, func@ha
39 la 9, func@l(9)