Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / arm-reloc-abs32.s
bloba9f06427c149ef6d8672c9c90f03d1a7b9bc18c6
1 // REQUIRES: arm
2 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t
3 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.o
4 // RUN: ld.lld %t %t256.o -o %t2
5 // RUN: llvm-objdump -d %t2 | FileCheck %s
6 .syntax unified
7 .globl _start
8 _start:
9 .section .R_ARM_ABS32POS, "ax",%progbits
10 .word foo + 0x24
12 // S = 0x100, A = 0x24
13 // S + A = 0x124
14 // CHECK: Disassembly of section .R_ARM_ABS32POS:
15 // CHECK-EMPTY:
16 // CHECK: 00000124
17 .section .R_ARM_ABS32NEG, "ax",%progbits
18 .word foo - 0x24
19 // S = 0x100, A = -0x24
20 // CHECK: Disassembly of section .R_ARM_ABS32NEG:
21 // CHECK-EMPTY:
22 // CHECK: 000000dc