1 ; RUN: llc %s -mtriple=thumbv5-linux-gnueabi -mcpu=xscale -o - | \ 2 ; RUN: FileCheck -check-prefix=ASM %s 3 4 ; RUN: llc %s -mtriple=thumbv5-linux-gnueabi -filetype=obj \ 5 ; RUN: -mcpu=xscale -o - | llvm-readobj -s -sd | \ 6 ; RUN: FileCheck -check-prefix=OBJ %s 7 8 ; FIXME: The OBJ test should be a .s to .o test and the ASM test should 9 ; be moved to test/CodeGen/ARM. 10 11 define void @foo() nounwind { 12 entry: 13 ret void 14 } 15 16 ; ASM: .eabi_attribute 6, 5 17 ; ASM-NEXT: .eabi_attribute 8, 1 18 ; ASM-NEXT: .eabi_attribute 9, 1 19 20 ; OBJ: Sections [ 21 ; OBJ: Section { 22 ; OBJ: Index: 4 23 ; OBJ-NEXT: Name: .ARM.attributes (12) 24 ; OBJ-NEXT: Type: SHT_ARM_ATTRIBUTES 25 ; OBJ-NEXT: Flags [ (0x0) 26 ; OBJ-NEXT: ] 27 ; OBJ-NEXT: Address: 0x0 28 ; OBJ-NEXT: Offset: 0x38 29 ; OBJ-NEXT: Size: 32 30 ; OBJ-NEXT: Link: 0 31 ; OBJ-NEXT: Info: 0 32 ; OBJ-NEXT: AddressAlignment: 1 33 ; OBJ-NEXT: EntrySize: 0 34 ; OBJ-NEXT: SectionData ( 35 ; OBJ-NEXT: 0000: 411F0000 00616561 62690001 15000000 36 ; OBJ-NEXT: 0010: 06050801 09011401 15011703 18011901 37 ; OBJ-NEXT: ) 38 ; OBJ-NEXT: } 39