Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / ppc32-reloc-rel.s
blobb89e0b43cb785c910187212b79ae36c16d04d3af
1 # REQUIRES: ppc
2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.be.o
3 # RUN: ld.lld %t.be.o -o %t
4 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
6 # RUN: llvm-mc -filetype=obj -triple=powerpcle %s -o %t.le.o
7 # RUN: ld.lld %t.le.o -o %t
8 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
10 .section .R_PPC_REL14,"ax",@progbits
11 beq 1f
13 # CHECK-LABEL: section .R_PPC_REL14:
14 # CHECK: 100100f4: bt 2, 0x100100f8
16 .section .R_PPC_REL24,"ax",@progbits
17 b 1f
19 # CHECK-LABEL: section .R_PPC_REL24:
20 # CHECK: b 0x100100fc
22 .section .R_PPC_REL32,"ax",@progbits
23 .long 1f - .
25 # HEX-LABEL: section .R_PPC_REL32:
26 # HEX-NEXT: 10010008 00000004
28 .section .R_PPC_PLTREL24,"ax",@progbits
29 b 1f@PLT+32768
31 # CHECK-LABEL: section .R_PPC_PLTREL24:
32 # CHECK: b 0x10010104
34 .section .R_PPC_LOCAL24PC,"ax",@progbits
35 b 1f@local
37 # CHECK-LABEL: section .R_PPC_LOCAL24PC:
38 # CHECK: b 0x10010108