Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / arm-data-relocs.s
blob91037c8cebf9b19c87793d6ea8efce33410f15e7
1 // REQUIRES: arm
2 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
3 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.o
4 // RUN: ld.lld %t.o %t256.o -o %t
5 // RUN: llvm-objdump -s %t | FileCheck %s --check-prefixes=CHECK,LE
7 // RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi %s -o %t.be.o
8 // RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.be.o
9 // RUN: ld.lld %t.be.o %t256.be.o -o %t.be
10 // RUN: llvm-objdump -s %t.be | FileCheck %s --check-prefixes=CHECK,BE
12 // RUN: ld.lld --be8 %t.be.o %t256.be.o -o %t.be8
13 // RUN: llvm-objdump -s %t.be8 | FileCheck %s --check-prefixes=CHECK,BE
15 .globl _start
16 _start:
17 .section .R_ARM_ABS, "ax","progbits"
18 .word foo + 0x24
20 // CHECK: Contents of section .R_ARM_ABS:
21 // LE-NEXT: 200b4 24010000
22 // BE-NEXT: 200b4 00000124
24 .section .R_ARM_PREL, "ax","progbits"
25 .word foo - . + 0x24
27 // CHECK: Contents of section .R_ARM_PREL:
28 // LE-NEXT: 200b8 6c00feff
29 // BE-NEXT: 200b8 fffe006c