1 # RUN: llvm-mc -triple=powerpc64le-unknown-unknown -filetype=obj %s 2>&1 | \
2 # RUN: FileCheck %s -check-prefix=MC
3 # RUN: llvm-mc -triple=powerpc64le-unknown-unknown -filetype=obj %s | \
4 # RUN: llvm-readobj -r - | FileCheck %s -check-prefix=READOBJ
6 # RUN: llvm-mc -triple=powerpc64-unknown-unknown -filetype=obj %s 2>&1 | \
7 # RUN: FileCheck %s -check-prefix=MC
8 # RUN: llvm-mc -triple=powerpc64-unknown-unknown -filetype=obj %s | \
9 # RUN: llvm-readobj -r - | FileCheck %s -check-prefix=READOBJ
11 # This test checks that on Power PC we can correctly convert @pcrel and
12 # @got@pcrel into R_PPC64_PCREL34 and R_PPC64_GOT_PCREL34.
14 # MC-NOT: error: invalid variant
16 # READOBJ: 0x0 R_PPC64_PCREL34 locvalue 0x0
17 # READOBJ-NEXT: 0x20 R_PPC64_GOT_PCREL34 evalue 0x0
21 .globl local # -- Begin function local
28 plwa
3, locvalue@PCREL
(0), 1
33 .size local, .Lfunc_end0-.Lfunc_begin0
35 .globl external # -- Begin function external
37 .type external,@function
42 pld
3, evalue@got@pcrel
(0), 1
48 .size external, .Lfunc_end1-.Lfunc_begin1
50 .type locvalue,@object # @locvalue
51 .section .bss,"aw",@nobits