[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc64-reloc-pcrel34.s
bloba6e9c086a752d489f4c6a6bc9be06504d0b66007
1 # REQUIRES: ppc
2 # RUN: echo 'SECTIONS { \
3 # RUN: .text_low 0x10010000: { *(.text_low) } \
4 # RUN: .text_high 0x10080000 : { *(.text_high) } \
5 # RUN: }' > %t.script
7 # RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o
8 # RUN: ld.lld -T %t.script %t.o -o %t
9 # RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=SYMBOL
10 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
12 # RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t.o
13 # RUN: ld.lld -T %t.script %t.o -o %t
14 # RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=SYMBOL
15 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
17 .section .text_low, "ax", %progbits
18 # CHECK-LABEL: <GlobIntPCRel>:
19 # CHECK-NEXT: 10010000: plwa 3, 12(0), 1
20 # SYMBOL: 1001000c 4 NOTYPE LOCAL DEFAULT 1 glob_int
21 GlobIntPCRel:
22 plwa 3, glob_int@PCREL(0), 1
23 blr
24 glob_int:
25 .long 0
26 .size glob_int, 4
29 # CHECK-LABEL: <GlobIntPCRelOffset>:
30 # CHECK-NEXT: 10010010: plwa 3, 16(0), 1
31 # SYMBOL: 1001001c 8 NOTYPE LOCAL DEFAULT 1 glob_int8
32 GlobIntPCRelOffset:
33 plwa 3, glob_int8@PCREL+4(0), 1
34 blr
35 glob_int8:
36 .quad 0
37 .size glob_int8, 8
40 # CHECK-LABEL: <GlobIntPCRelBigOffset>:
41 # CHECK-NEXT: 10010024: plwa 3, 458720(0), 1
42 # SYMBOL: 10080000 8 NOTYPE LOCAL DEFAULT 2 glob_int8_big
43 GlobIntPCRelBigOffset:
44 plwa 3, glob_int8_big@PCREL+4(0), 1
45 blr
46 .section .text_high, "ax", %progbits
47 glob_int8_big:
48 .quad 0
49 .size glob_int8_big, 8