brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · b514e6f Raw
30 lines · plain
1; RUN: llc -mtriple=riscv32-unknown-linux-gnu -verify-machineinstrs -o - %s \2; RUN: | FileCheck --check-prefix=INITARRAY %s3; RUN: llc -mtriple=riscv32-unknown-elf -verify-machineinstrs -o - %s \4; RUN: | FileCheck --check-prefix=INITARRAY %s5; RUN: llc -mtriple=riscv64-unknown-linux-gnu -verify-machineinstrs -o - %s \6; RUN: | FileCheck --check-prefix=INITARRAY %s7; RUN: llc -mtriple=riscv64-unknown-elf -verify-machineinstrs -o - %s \8; RUN: | FileCheck --check-prefix=INITARRAY %s9 10; RUN: llc -mtriple=riscv32-unknown-linux-gnu -verify-machineinstrs -use-ctors -o - %s \11; RUN: | FileCheck --check-prefix=CTOR %s12; RUN: llc -mtriple=riscv32-unknown-elf -verify-machineinstrs -use-ctors -o - %s \13; RUN: | FileCheck --check-prefix=CTOR %s14; RUN: llc -mtriple=riscv64-unknown-linux-gnu -verify-machineinstrs -use-ctors -o - %s \15; RUN: | FileCheck --check-prefix=CTOR %s16; RUN: llc -mtriple=riscv64-unknown-elf -verify-machineinstrs -use-ctors -o - %s \17; RUN: | FileCheck --check-prefix=CTOR %s18 19define internal void @_GLOBAL__I_a() section ".text.startup" {20  ret void21}22 23@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__I_a, ptr null }]24 25;INITARRAY: section .init_array26;INITARRAY-NOT: .section    .ctors27 28;CTOR: .section .ctors29;CTOR-NOT:  section .init_array30