mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-31 12:30:06 +00:00
46 lines
1.1 KiB
LLVM
46 lines
1.1 KiB
LLVM
|
; RUN: llc -mtriple thumbv7-windows-itanium -filetype asm -o - %s \
|
||
|
; RUN: | FileCheck %s -check-prefix CHECK-ASM
|
||
|
|
||
|
; RUN: llc -mtriple thumbv7-windows-itanium -filetype obj -o - %s \
|
||
|
; RUN: | llvm-readobj -t | FileCheck %s -check-prefix CHECK-OBJECT
|
||
|
|
||
|
define arm_aapcs_vfpcc void @external() {
|
||
|
entry:
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
; CHECK-ASM: .def external
|
||
|
; CHECK-ASM: .scl 2
|
||
|
; CHECK-ASM: .type 32
|
||
|
; CHECK-ASM: .endef
|
||
|
; CHECK-ASM: .globl external
|
||
|
|
||
|
define internal arm_aapcs_vfpcc void @internal() {
|
||
|
entry:
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
; CHECK-ASM: .def internal
|
||
|
; CHECK-ASM: .scl 3
|
||
|
; CHECK-ASM: .type 32
|
||
|
; CHECK-ASM: .endef
|
||
|
; CHECK-ASM-NOT: .globl internal
|
||
|
|
||
|
; CHECK-OBJECT: Symbol {
|
||
|
; CHECK-OBJECT: Name: external
|
||
|
; CHECK-OBJECT: Section: .text
|
||
|
; CHECK-OBJECT: BaseType: Null
|
||
|
; CHECK-OBJECT: ComplexType: Function
|
||
|
; CHECK-OBJECT: StorageClass: External
|
||
|
; CHECK-OBJECT: AuxSymbolCount: 0
|
||
|
; CHECK-OBJECT: }
|
||
|
; CHECK-OBJECT: Symbol {
|
||
|
; CHECK-OBJECT: Name: internal
|
||
|
; CHECK-OBJECT: Section: .text
|
||
|
; CHECK-OBJECT: BaseType: Null
|
||
|
; CHECK-OBJECT: ComplexType: Function
|
||
|
; CHECK-OBJECT: StorageClass: Static
|
||
|
; CHECK-OBJECT: AuxSymbolCount: 0
|
||
|
; CHECK-OBJECT: }
|
||
|
|