1@ RUN: llvm-mc -triple arm-unknown-linux -filetype=obj %s -o %t 2@ RUN: llvm-objdump -d %t | FileCheck %s 3@ RUN: llvm-objdump -d -r %t | FileCheck --check-prefixes=CHECK,RELOC %s 4 5 .cpu arm7tdmi 6 .global myInt 7 .data 8 .align 2 9 .type myInt, %object 10 .size myInt, 4 11myInt: 12 .word 1 13 .text 14 .align 2 15 .global main 16 .type main, %function 17main: 18 str fp, [sp, #-4]! 19 add fp, sp, #0 20 ldr r3, .L3 21 ldr r3, [r3] 22 mov r0, r3 23 sub sp, fp, #0 24 ldr fp, [sp], #4 25 bx lr 26.L4: 27 .align 2 28.L3: 29 .word myInt 30 .size main, .-main 31 .global myStr 32 .type myStr, %object 33myStr: 34 .string "test string" 35 36 37@ CHECK: .word 0x00000000 38@ RELOC-NEXT: R_ARM_ABS32 myInt 39@ CHECK-EMPTY: 40@ CHECK-NEXT: <myStr>: 41@ CHECK-NEXT: 74 65 73 74 20 73 74 72 test str 42