Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / ppc64-reloc-pcrel34-overflow.s
blob60b34a26ec49086ec270b0ec90422026ba4f5e81
1 # REQUIRES: ppc
2 # RUN: echo 'SECTIONS { \
3 # RUN: .text 0x10000: { *(.text) } \
4 # RUN: .data 0x200010000 : { *(.data) } \
5 # RUN: }' > %t.script
7 # RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o
8 # RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s
10 # RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t.o
11 # RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s
13 # CHECK: relocation R_PPC64_PCREL34 out of range: 8589934592 is not in [-8589934592, 8589934591]; references section '.data'
14 plwa 3, glob_overflow@PCREL(0), 1
16 # CHECK-NOT: relocation
17 plwa 3, .data@PCREL(0), 1
19 .data
20 glob_overflow:
21 .long 0
22 .size glob_overflow, 4