51 lines · plain
1@ RUN: llvm-mc -filetype=obj -triple=armv7 %s -o %t2@ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=ARM3@ RUN: llvm-objdump -d --triple=armv7 %t | FileCheck %s --check-prefix=ARM_ADDEND4@ RUN: llvm-mc -filetype=obj -triple=thumbv7 %s -o %t5@ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=THUMB6@ RUN: llvm-objdump -d --triple=thumbv7 %t | FileCheck %s --check-prefix=THUMB_ADDEND7@ RUN: llvm-mc -filetype=obj -triple=armebv7 %s -o %t8@ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=ARM9@ RUN: llvm-objdump -d --triple=armebv7 %t | FileCheck %s --check-prefix=ARM_ADDEND10@ RUN: llvm-mc -filetype=obj -triple=thumbebv7 %s -o %t11@ RUN: llvm-readelf -r %t | FileCheck %s --check-prefix=THUMB12@ RUN: llvm-objdump -d --triple=thumbebv7 %t | FileCheck %s --check-prefix=THUMB_ADDEND13 14@ ARM: R_ARM_LDR_PC_G015@ ARM: R_ARM_LDR_PC_G016@ ARM: R_ARM_LDR_PC_G017@ ARM: R_ARM_LDR_PC_G018@ ARM_ADDEND: r0, [pc, #-0x8]19@ ARM_ADDEND: r0, [pc, #-0x8]20@ ARM_ADDEND: r0, [pc, #-0x10]21@ ARM_ADDEND: r0, [pc]22 23@ THUMB: R_ARM_THM_PC1224@ THUMB: R_ARM_THM_PC1225@ THUMB: R_ARM_THM_PC1226@ THUMB: R_ARM_THM_PC1227@ THUMB_ADDEND: r0, [pc, #-0x4]28@ THUMB_ADDEND: r0, [pc, #-0x4]29@ THUMB_ADDEND: r0, [pc, #-0xc]30@ THUMB_ADDEND: r0, [pc, #0x4]31 32 .section .text.bar, "ax"33 .balign 434 .global bar35 .type bar, %function36bar:37 ldr r0, foo1 @ arm_ldst_pcrel_12 / t2_ldst_pcrel_1238 ldrb r0, foo1 @ arm_ldst_pcrel_12 / t2_ldst_pcrel_1239 ldr r0, foo2-8 @ arm_ldst_pcrel_12 / t2_ldst_pcrel_1240 ldrb r0, foo1+8 @ arm_ldst_pcrel_12 / t2_ldst_pcrel_1241 bx lr42 43 .section .data.foo, "a", %progbits44 .balign 445 .global foo146 .global foo247foo1:48 .word 0x11223344, 0x5566778849foo2:50 .word 0x99aabbcc, 0xddeeff0051