50 lines · plain
1# REQUIRES: ppc2# RUN: echo 'SECTIONS { \3# RUN: .text_low 0x10010000: { *(.text_low) } \4# RUN: .text_high 0x10080000 : { *(.text_high) } \5# RUN: }' > %t.script6 7# RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o8# RUN: ld.lld -T %t.script %t.o -o %t9# RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=SYMBOL10# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s11 12# RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t.o13# RUN: ld.lld -T %t.script %t.o -o %t14# RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=SYMBOL15# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s16 17.section .text_low, "ax", %progbits18# CHECK-LABEL: <GlobIntPCRel>:19# CHECK-NEXT: 10010000: plwa 3, 12(0), 120# SYMBOL: 1001000c 4 NOTYPE LOCAL DEFAULT 1 glob_int21GlobIntPCRel:22 plwa 3, glob_int@PCREL(0), 123 blr24glob_int:25 .long 026 .size glob_int, 427 28 29# CHECK-LABEL: <GlobIntPCRelOffset>:30# CHECK-NEXT: 10010010: plwa 3, 16(0), 131# SYMBOL: 1001001c 8 NOTYPE LOCAL DEFAULT 1 glob_int832GlobIntPCRelOffset:33 plwa 3, glob_int8@PCREL+4(0), 134 blr35glob_int8:36 .quad 037 .size glob_int8, 838 39 40# CHECK-LABEL: <GlobIntPCRelBigOffset>:41# CHECK-NEXT: 10010024: plwa 3, 458720(0), 142# SYMBOL: 10080000 8 NOTYPE LOCAL DEFAULT 2 glob_int8_big43GlobIntPCRelBigOffset:44 plwa 3, glob_int8_big@PCREL+4(0), 145 blr46.section .text_high, "ax", %progbits47glob_int8_big:48 .quad 049 .size glob_int8_big, 850