89 lines · plain
1; RUN: llc < %s | FileCheck %s2 3; Check that we come up with appropriate section names that link.exe sorts4; well.5 6; CHECK: .section .CRT$XCA00042,"dr"7; CHECK: .p2align 38; CHECK: .quad f9; CHECK: .section .CRT$XCC,"dr"10; CHECK: .p2align 311; CHECK: .quad i12; CHECK: .section .CRT$XCC00250,"dr"13; CHECK: .p2align 314; CHECK: .quad k15; CHECK: .section .CRT$XCL,"dr",unique,016; CHECK: .p2align 317; CHECK: .quad j18; CHECK: .section .CRT$XCT12345,"dr"19; CHECK: .p2align 320; CHECK: .quad g21; CHECK: .section .CRT$XCT23456,"dr",associative,h,unique,022; CHECK: .p2align 323; CHECK: .quad init_h24 25target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"26target triple = "x86_64-pc-windows-msvc19.14.26433"27 28$h = comdat any29 30@h = linkonce_odr global i8 55, comdat, align 131 32@str0 = private dso_local unnamed_addr constant [6 x i8] c"later\00", align 133@str1 = private dso_local unnamed_addr constant [6 x i8] c"first\00", align 134@str2 = private dso_local unnamed_addr constant [5 x i8] c"main\00", align 135 36@llvm.global_ctors = appending global [6 x { i32, ptr, ptr }] [37 { i32, ptr, ptr } { i32 12345, ptr @g, ptr null },38 { i32, ptr, ptr } { i32 42, ptr @f, ptr null },39 { i32, ptr, ptr } { i32 23456, ptr @init_h, ptr @h },40 { i32, ptr, ptr } { i32 200, ptr @i, ptr null },41 { i32, ptr, ptr } { i32 400, ptr @j, ptr null },42 { i32, ptr, ptr } { i32 250, ptr @k, ptr null }43]44 45declare dso_local i32 @puts(ptr nocapture readonly) local_unnamed_addr46 47define dso_local void @g() {48entry:49 %call = tail call i32 @puts(ptr @str0)50 ret void51}52 53define dso_local void @f() {54entry:55 %call = tail call i32 @puts(ptr @str1)56 ret void57}58 59define dso_local void @init_h() {60entry:61 store i8 42, ptr @h62 ret void63}64 65define dso_local void @i() {66entry:67 store i8 43, ptr @h68 ret void69}70 71define dso_local void @j() {72entry:73 store i8 44, ptr @h74 ret void75}76 77define dso_local void @k() {78entry:79 store i8 45, ptr @h80 ret void81}82 83; Function Attrs: nounwind uwtable84define dso_local i32 @main() local_unnamed_addr {85entry:86 %call = tail call i32 @puts(ptr @str2)87 ret i32 088}89