brintos

brintos / llvm-project-archived public Read only

0
0
Text · 661 B · a9f0642 Raw
23 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t3// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.o4// RUN: ld.lld %t %t256.o -o %t25// RUN: llvm-objdump -d %t2 | FileCheck %s6 .syntax unified7 .globl _start8_start:9 .section .R_ARM_ABS32POS, "ax",%progbits10 .word foo + 0x2411 12// S = 0x100, A = 0x2413// S + A = 0x12414// CHECK: Disassembly of section .R_ARM_ABS32POS:15// CHECK-EMPTY:16// CHECK: 00000124   17 .section .R_ARM_ABS32NEG, "ax",%progbits18 .word foo - 0x2419// S = 0x100, A = -0x2420// CHECK: Disassembly of section .R_ARM_ABS32NEG:21// CHECK-EMPTY:22// CHECK: 000000dc   23