1 ; RUN: llc %s -mtriple=armv7-linux-gnueabi -filetype=obj -o - | \ 2 ; RUN: llvm-readobj -s -sr -sd | FileCheck -check-prefix=OBJ %s 3 4 target triple = "armv7-none-linux-gnueabi" 5 6 @a = external global i8 7 8 define arm_aapcs_vfpcc i32 @barf() nounwind { 9 entry: 10 %0 = tail call arm_aapcs_vfpcc i32 @foo(i8* @a) nounwind 11 ret i32 %0 12 ; OBJ: Section { 13 ; OBJ: Name: .text 14 ; OBJ: SectionData ( 15 ; OBJ-NEXT: 0000: 00482DE9 000000E3 000040E3 FEFFFFEB 16 ; OBJ-NEXT: 0010: 0088BDE8 17 ; OBJ-NEXT: ) 18 ; OBJ: Relocations [ 19 ; OBJ-NEXT: 0x4 R_ARM_MOVW_ABS_NC a 20 ; OBJ-NEXT: 0x8 R_ARM_MOVT_ABS 21 ; OBJ-NEXT: 0xC R_ARM_CALL foo 22 ; OBJ-NEXT: ] 23 24 } 25 26 declare arm_aapcs_vfpcc i32 @foo(i8*) 27 28