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