You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
; RUN: llc -mtriple=riscv32-unknown-linux-gnu -verify-machineinstrs -o - %s \
|
|
; RUN: | FileCheck --check-prefix=INITARRAY %s
|
|
; RUN: llc -mtriple=riscv32-unknown-elf -verify-machineinstrs -o - %s \
|
|
; RUN: | FileCheck --check-prefix=INITARRAY %s
|
|
; RUN: llc -mtriple=riscv64-unknown-linux-gnu -verify-machineinstrs -o - %s \
|
|
; RUN: | FileCheck --check-prefix=INITARRAY %s
|
|
; RUN: llc -mtriple=riscv64-unknown-elf -verify-machineinstrs -o - %s \
|
|
; RUN: | FileCheck --check-prefix=INITARRAY %s
|
|
|
|
; RUN: llc -mtriple=riscv32-unknown-linux-gnu -verify-machineinstrs -use-ctors -o - %s \
|
|
; RUN: | FileCheck --check-prefix=CTOR %s
|
|
; RUN: llc -mtriple=riscv32-unknown-elf -verify-machineinstrs -use-ctors -o - %s \
|
|
; RUN: | FileCheck --check-prefix=CTOR %s
|
|
; RUN: llc -mtriple=riscv64-unknown-linux-gnu -verify-machineinstrs -use-ctors -o - %s \
|
|
; RUN: | FileCheck --check-prefix=CTOR %s
|
|
; RUN: llc -mtriple=riscv64-unknown-elf -verify-machineinstrs -use-ctors -o - %s \
|
|
; RUN: | FileCheck --check-prefix=CTOR %s
|
|
|
|
define internal void @_GLOBAL__I_a() section ".text.startup" {
|
|
ret void
|
|
}
|
|
|
|
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__I_a, i8* null }]
|
|
|
|
;INITARRAY: section .init_array
|
|
;INITARRAY-NOT: .section .ctors
|
|
|
|
;CTOR: .section .ctors
|
|
;CTOR-NOT: section .init_array
|
|
|