brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · 59f2dca Raw
77 lines · plain
1; RUN: llc < %s | FileCheck %s2 3; C++ source to regenerate:4; int main() {5;   volatile int x;6;   x = 1;7; #line 08;   x = 2;9; #line 710;   x = 3;11; }12 13 14; CHECK-LABEL: main:                                   # @main15; CHECK:         .cv_loc 0 1 1 0                 # t.cpp:1:016; CHECK:         .cv_loc 0 1 3 0                 # t.cpp:3:017; CHECK:         movl    $1, 4(%rsp)18; CHECK-NOT: .cv_loc {{.*}} t.cpp:0:019; CHECK:         movl    $2, 4(%rsp)20; CHECK:         .cv_loc 0 1 7 0                 # t.cpp:7:021; CHECK:         movl    $3, 4(%rsp)22; CHECK:         .cv_loc 0 1 8 0                 # t.cpp:8:023; CHECK:         xorl    %eax, %eax24; CHECK:         retq25 26; ModuleID = 't.cpp'27source_filename = "t.cpp"28target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"29target triple = "x86_64-pc-windows-msvc19.22.27905"30 31; Function Attrs: norecurse nounwind uwtable32define dso_local i32 @main() local_unnamed_addr #0 !dbg !8 {33entry:34  %x = alloca i32, align 435  call void @llvm.dbg.declare(metadata ptr %x, metadata !13, metadata !DIExpression()), !dbg !1536  store volatile i32 1, ptr %x, align 4, !dbg !16, !tbaa !1737  store volatile i32 2, ptr %x, align 4, !dbg !21, !tbaa !1738  store volatile i32 3, ptr %x, align 4, !dbg !22, !tbaa !1739  ret i32 0, !dbg !2340}41 42; Function Attrs: nounwind readnone speculatable willreturn43declare void @llvm.dbg.declare(metadata, metadata, metadata) #244 45attributes #0 = { norecurse nounwind uwtable }46attributes #1 = { argmemonly nounwind willreturn }47attributes #2 = { nounwind readnone speculatable willreturn }48 49!llvm.dbg.cu = !{!0}50!llvm.module.flags = !{!3, !4, !5, !6}51!llvm.ident = !{!7}52 53!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)54!1 = !DIFile(filename: "t.cpp", directory: "C:\5Csrc\5Cllvm-project\5Cbuild", checksumkind: CSK_MD5, checksum: "8b6d53b166e6fa660f115eff7beedf3b")55!2 = !{}56!3 = !{i32 2, !"CodeView", i32 1}57!4 = !{i32 2, !"Debug Info Version", i32 3}58!5 = !{i32 1, !"wchar_size", i32 2}59!6 = !{i32 7, !"PIC Level", i32 2}60!7 = !{!"clang version 10.0.0"}61!8 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !9, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !12)62!9 = !DISubroutineType(types: !10)63!10 = !{!11}64!11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)65!12 = !{!13}66!13 = !DILocalVariable(name: "x", scope: !8, file: !1, line: 2, type: !14)67!14 = !DIDerivedType(tag: DW_TAG_volatile_type, baseType: !11)68!15 = !DILocation(line: 2, scope: !8)69!16 = !DILocation(line: 3, scope: !8)70!17 = !{!18, !18, i64 0}71!18 = !{!"int", !19, i64 0}72!19 = !{!"omnipotent char", !20, i64 0}73!20 = !{!"Simple C++ TBAA"}74!21 = !DILocation(line: 0, scope: !8)75!22 = !DILocation(line: 7, scope: !8)76!23 = !DILocation(line: 8, scope: !8)77