30 lines · plain
1# REQUIRES: ppc2 3# RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o4# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s5 6# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o7# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s8 9# CHECK: improper alignment for relocation R_PPC64_TOC16_LO_DS: 0x8009 is not aligned to 16 bytes10 11 .global test12 .p2align 413 .type test,@function14test:15.Lgep:16 addis 2, 12, .TOC.-.Lgep@ha17 addi 2, 2, .TOC.-.Lgep@l18.Llep:19 .localentry test, .Llep-.Lgep20 addis 3, 2, qword@toc@ha21 lxv 3, qword@toc@l(3)22 blr23 24.data25 .p2align 426pad:27 .byte 128qword:29 .quad 030