29 lines · plain
1@ RUN: llvm-mc -filetype=obj -triple=armv7 %s -o %t2@ RUN: llvm-readelf -r %t | FileCheck %s3@ RUN: llvm-objdump -dr --triple=armv7 %t | FileCheck %s --check-prefix=DISASM4@ RUN: llvm-mc -filetype=obj -triple=armebv7 %s -o %t5@ RUN: llvm-readelf -r %t | FileCheck %s6 7@ CHECK: There are no relocations in this file.8 9@ DISASM-LABEL: <bar>:10@ DISASM-NEXT: ldr r0, [pc, #0x0] @ 0x4 <bar+0x4>11@ DISASM-NEXT: add r0, pc12@ DISASM-NEXT: .word 0xfffffffb13@@ GNU assembler creates an R_ARM_REL32 referencing bar.14@ DISASM-NOT: {{.}}15 16.syntax unified17 18.thumb19.thumb_func20.type bar, %function21.globl bar22bar:23 ldr r0, .LCPI24.LPC0_1:25 add r0, pc26 27.LCPI:28 .long bar-(.LPC0_1+4) @ if there is no relocation, the value should be odd29