mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
f89da7210b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179361 91177308-0d34-0410-b5e6-96231b3b80d8
49 lines
1.6 KiB
LLVM
49 lines
1.6 KiB
LLVM
; RUN: llc %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
|
|
; RUN: llvm-readobj -s -sd | FileCheck -check-prefix=BASIC %s
|
|
; RUN: llc %s -mtriple=armv7-linux-gnueabi -march=arm -mcpu=cortex-a8 \
|
|
; RUN: -mattr=-neon,-vfp3,+vfp2 \
|
|
; RUN: -arm-reserve-r9 -filetype=obj -o - | \
|
|
; RUN: llvm-readobj -s -sd | FileCheck -check-prefix=CORTEXA8 %s
|
|
|
|
|
|
; This tests that the extpected ARM attributes are emitted.
|
|
;
|
|
; 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: )
|
|
|
|
; 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: )
|
|
|
|
define i32 @f(i64 %z) {
|
|
ret i32 0
|
|
}
|