brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 0d160f0 Raw
47 lines · plain
1; REQUIRES: x862; RUN: llc -mtriple x86_64-windows-msvc -filetype obj -o %t.obj %s3; RUN: lld-link /nodefaultlib /noentry /dll /debug /out:%t.exe /pdb:%t.pdb %t.obj4; RUN: llvm-pdbutil dump -type-index=0x7c %t.pdb5 6; CHECK: 0x007C (char8_t) | char8_t7 8define dso_local i32 @main() #0 !dbg !9 {9  %1 = alloca i32, align 410  %2 = alloca i8, align 111  store i32 0, ptr %1, align 412  call void @llvm.dbg.declare(metadata ptr %2, metadata !13, metadata !DIExpression()), !dbg !1513  store i8 0, ptr %2, align 1, !dbg !1514  %3 = load i8, ptr %2, align 1, !dbg !1615  %4 = zext i8 %3 to i32, !dbg !1616  ret i32 %4, !dbg !1617}18 19; Function Attrs: nofree nosync nounwind readnone speculatable willreturn20declare void @llvm.dbg.declare(metadata, metadata, metadata) #121 22attributes #0 = { mustprogress noinline norecurse nounwind optnone uwtable "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }23attributes #1 = { nofree nosync nounwind readnone speculatable willreturn }24 25!llvm.dbg.cu = !{!0}26!llvm.linker.options = !{}27!llvm.module.flags = !{!3, !4, !5, !6, !7}28!llvm.ident = !{!8}29 30!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 13.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)31!1 = !DIFile(filename: "pdb_char8_t.cpp", directory: "C:\\src", checksumkind: CSK_MD5, checksum: "a00748d29f4e59003184945cd3e17ee3")32!2 = !{}33!3 = !{i32 2, !"CodeView", i32 1}34!4 = !{i32 2, !"Debug Info Version", i32 3}35!5 = !{i32 1, !"wchar_size", i32 2}36!6 = !{i32 7, !"PIC Level", i32 2}37!7 = !{i32 7, !"uwtable", i32 1}38!8 = !{!"clang version 13.0.0"}39!9 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !10, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)40!10 = !DISubroutineType(types: !11)41!11 = !{!12}42!12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)43!13 = !DILocalVariable(name: "local", scope: !9, file: !1, line: 3, type: !14)44!14 = !DIBasicType(name: "char8_t", size: 8, encoding: DW_ATE_UTF)45!15 = !DILocation(line: 3, scope: !9)46!16 = !DILocation(line: 4, scope: !9)47