brintos

brintos / llvm-project-archived public Read only

0
0
Text · 723 B · 6b66728 Raw
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 4 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, word@toc@ha21        lwa   3, word@toc@l(3)22        blr23 24.data25       .p2align 426pad:27       .byte 128word:29       .long 030