brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 8a7b037 Raw
71 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$XTA00042,"dr"7; CHECK: .p2align        38; CHECK: .quad   f9; CHECK: .section        .CRT$XTT12345,"dr"10; CHECK: .p2align        311; CHECK: .quad   g12; CHECK: .section        .CRT$XTT23456,"dr",associative,h,unique,013; CHECK: .p2align        314; CHECK: .quad   init_h15; CHECK: .section        .CRT$XTX,"dr"16; CHECK: .p2align        317; CHECK: .quad   str3_dtor18 19target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"20target triple = "x86_64-pc-windows-msvc19.14.26433"21 22$h = comdat any23 24@h = linkonce_odr global i8 55, comdat, align 125 26@str0 = private dso_local unnamed_addr constant [6 x i8] c"later\00", align 127@str1 = private dso_local unnamed_addr constant [6 x i8] c"first\00", align 128@str2 = private dso_local unnamed_addr constant [5 x i8] c"main\00", align 129@str3 = private dso_local unnamed_addr constant [8 x i8] c"default\00", align 130 31@llvm.global_dtors = appending global [4 x { i32, ptr, ptr }] [32  { i32, ptr, ptr } { i32 12345, ptr @g, ptr null },33  { i32, ptr, ptr } { i32 42, ptr @f, ptr null },34  { i32, ptr, ptr } { i32 23456, ptr @init_h, ptr @h },35  { i32, ptr, ptr } { i32 65535, ptr @str3_dtor, ptr null }36]37 38declare dso_local i32 @puts(ptr nocapture readonly) local_unnamed_addr39 40define dso_local void @g() {41entry:42  %call = tail call i32 @puts(ptr @str0)43  ret void44}45 46define dso_local void @f() {47entry:48  %call = tail call i32 @puts(ptr @str1)49  ret void50}51 52define dso_local void @str3_dtor() {53entry:54  %call = tail call i32 @puts(ptr @str3)55  ret void56}57 58define dso_local void @init_h() {59entry:60  store i8 42, ptr @h61  ret void62}63 64 65; Function Attrs: nounwind uwtable66define dso_local i32 @main() local_unnamed_addr {67entry:68  %call = tail call i32 @puts(ptr @str2)69  ret i32 070}71