1# RUN: llvm-mc -triple powerpc64le-unknown-linux-gnu %s -filetype=obj -o - | \ 2# RUN: llvm-objdump -D -r - | FileCheck %s 3 4 .text 5 .abiversion 2 6 .global test 7 .p2align 4 8 .type test,@function 9test: 10.Lgep: 11 addis 2, 12, .TOC.-.Lgep@ha 12 addi 2, 2, .TOC.-.Lgep@l 13.Llep: 14 .localentry test, .Llep-.Lgep 15 addis 3, 2, vecA@toc@ha 16 lxv 3, vecA@toc@l(3) 17 addis 3, 2, vecB@toc@ha 18 stxv 3, vecB@toc@l(3) 19 blr 20 21 .comm vecA, 16, 16 22 .comm vecB, 16, 16 23 24# CHECK: Disassembly of section .text: 25# CHECK-LABEL: <test>: 26# CHECK-NEXT: addis 2, 12, 0 27# CHECK-NEXT: R_PPC64_REL16_HA .TOC. 28# CHECK-NEXT: addi 2, 2, 0 29# CHECK-NEXT: R_PPC64_REL16_LO .TOC. 30# CHECK-NEXT: addis 3, 2, 0 31# CHECK-NEXT: R_PPC64_TOC16_HA vecA 32# CHECK-NEXT: lxv 3, 0(3) 33# CHECK-NEXT: R_PPC64_TOC16_LO_DS vecA 34# CHECK-NEXT: addis 3, 2, 0 35# CHECK-NEXT: R_PPC64_TOC16_HA vecB 36# CHECK-NEXT: stxv 3, 0(3) 37# CHECK-NEXT: R_PPC64_TOC16_LO_DS vecB 38# CHECK-NEXT: blr 39 40