mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
6263f94674
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47238 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
1.0 KiB
LLVM
26 lines
1.0 KiB
LLVM
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | \
|
|
; RUN: grep {\\.mod_init_func}
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | \
|
|
; RUN: grep {\\.mod_term_func}
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | \
|
|
; RUN: grep {\\.section \\.ctors,"aw",.progbits}
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | \
|
|
; RUN: grep {\\.section \\.dtors,"aw",.progbits}
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | \
|
|
; RUN: grep {\\.section \\.init_array,"aw",.init_array}
|
|
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | \
|
|
; RUN: grep {\\.section \\.fini_array,"aw",.fini_array}
|
|
|
|
@llvm.global_ctors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @__mf_init } ] ; <[1 x { i32, void ()* }]*> [#uses=0]
|
|
@llvm.global_dtors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @__mf_fini } ] ; <[1 x { i32, void ()* }]*> [#uses=0]
|
|
|
|
define void @__mf_init() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
define void @__mf_fini() {
|
|
entry:
|
|
ret void
|
|
}
|