2010-10-26 01:50:35 +08:00
|
|
|
; RUN: llc %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
|
2013-04-12 12:06:46 +08:00
|
|
|
; RUN: llvm-readobj -s -sd | FileCheck -check-prefix=BASIC %s
|
2011-02-07 08:49:53 +08:00
|
|
|
; RUN: llc %s -mtriple=armv7-linux-gnueabi -march=arm -mcpu=cortex-a8 \
|
2011-07-07 11:55:05 +08:00
|
|
|
; RUN: -mattr=-neon,-vfp3,+vfp2 \
|
2011-02-07 08:49:53 +08:00
|
|
|
; RUN: -arm-reserve-r9 -filetype=obj -o - | \
|
2013-04-12 12:06:46 +08:00
|
|
|
; RUN: llvm-readobj -s -sd | FileCheck -check-prefix=CORTEXA8 %s
|
2011-02-07 08:49:53 +08:00
|
|
|
|
|
|
|
|
2010-10-26 01:50:35 +08:00
|
|
|
; This tests that the extpected ARM attributes are emitted.
|
|
|
|
;
|
2013-04-12 12:06:46 +08:00
|
|
|
; BASIC: Section {
|
|
|
|
; BASIC: Name: .ARM.attributes
|
|
|
|
; BASIC-NEXT: Type: SHT_ARM_ATTRIBUTES
|
|
|
|
; BASIC-NEXT: Flags [ (0x0)
|
|
|
|
; BASIC-NEXT: ]
|
|
|
|
; BASIC-NEXT: Address: 0x0
|
|
|
|
; BASIC-NEXT: Offset: 0x3C
|
|
|
|
; BASIC-NEXT: Size: 34
|
|
|
|
; BASIC-NEXT: Link: 0
|
|
|
|
; BASIC-NEXT: Info: 0
|
|
|
|
; BASIC-NEXT: AddressAlignment: 1
|
|
|
|
; BASIC-NEXT: EntrySize: 0
|
|
|
|
; BASIC-NEXT: SectionData (
|
|
|
|
; BASIC-NEXT: 0000: 41210000 00616561 62690001 17000000
|
|
|
|
; BASIC-NEXT: 0010: 060A0741 08010902 14011501 17031801
|
|
|
|
; BASIC-NEXT: 0020: 1901
|
|
|
|
; BASIC-NEXT: )
|
2011-02-07 08:49:53 +08:00
|
|
|
|
2013-04-12 12:06:46 +08:00
|
|
|
; CORTEXA8: Name: .ARM.attributes
|
|
|
|
; CORTEXA8-NEXT: Type: SHT_ARM_ATTRIBUTES
|
|
|
|
; CORTEXA8-NEXT: Flags [ (0x0)
|
|
|
|
; CORTEXA8-NEXT: ]
|
|
|
|
; CORTEXA8-NEXT: Address: 0x0
|
|
|
|
; CORTEXA8-NEXT: Offset: 0x3C
|
|
|
|
; CORTEXA8-NEXT: Size: 47
|
|
|
|
; CORTEXA8-NEXT: Link: 0
|
|
|
|
; CORTEXA8-NEXT: Info: 0
|
|
|
|
; CORTEXA8-NEXT: AddressAlignment: 1
|
|
|
|
; CORTEXA8-NEXT: EntrySize: 0
|
|
|
|
; CORTEXA8-NEXT: SectionData (
|
|
|
|
; CORTEXA8-NEXT: 0000: 412E0000 00616561 62690001 24000000
|
|
|
|
; CORTEXA8-NEXT: 0010: 05434F52 5445582D 41380006 0A074108
|
|
|
|
; CORTEXA8-NEXT: 0020: 0109020A 02140115 01170318 011901
|
|
|
|
; CORTEXA8-NEXT: )
|
2010-10-26 01:50:35 +08:00
|
|
|
|
|
|
|
define i32 @f(i64 %z) {
|
|
|
|
ret i32 0
|
|
|
|
}
|