source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/Hexagon/ctor.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 493 bytes
Line 
1; RUN: llc -march=hexagon < %s  | FileCheck -check-prefix=INITARRAY %s
2; RUN: llc -march=hexagon < %s  -use-ctors | FileCheck -check-prefix=CTOR %s
3
4@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__sub_I_P10066.ii, i8* null }]
5define internal void @_GLOBAL__sub_I_P10066.ii() {
6entry:
7  ret void
8}
9
10;CTOR: .section .ctors
11;CTOR-NOT:  section     .init_array
12
13;INITARRAY: section     .init_array
14;INITARRAY-NOT: .section        .ctors
Note: See TracBrowser for help on using the repository browser.