[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc64-error-missaligned-ds.s
blob6b6672824566df7ddf7cb623b1c76c00b79624a6
1 # REQUIRES: ppc
3 # RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
4 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
6 # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
7 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
9 # CHECK: improper alignment for relocation R_PPC64_TOC16_LO_DS: 0x8009 is not aligned to 4 bytes
11 .global test
12 .p2align 4
13 .type test,@function
14 test:
15 .Lgep:
16 addis 2, 12, .TOC.-.Lgep@ha
17 addi 2, 2, .TOC.-.Lgep@l
18 .Llep:
19 .localentry test, .Llep-.Lgep
20 addis 3, 2, word@toc@ha
21 lwa 3, word@toc@l(3)
22 blr
24 .data
25 .p2align 4
26 pad:
27 .byte 1
28 word:
29 .long 0