brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 8350344 Raw
58 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2 3--- |4 5  define i32 @test(i32 %x) #0 !dbg !4 {6  entry:7    %x.addr = alloca i32, align 48    store i32 %x, ptr %x.addr, align 49    call void @llvm.dbg.declare(metadata ptr %x.addr, metadata !12, metadata !13), !dbg !1410    %0 = load i32, ptr %x.addr, align 4, !dbg !1511    ret i32 %0, !dbg !1512  }13 14  declare void @llvm.dbg.declare(metadata, metadata, metadata) #115 16  attributes #0 = { nounwind "frame-pointer"="none" }17  attributes #1 = { nounwind readnone }18 19  !llvm.dbg.cu = !{!0}20  !llvm.module.flags = !{!9, !10}21  !llvm.ident = !{!11}22 23  !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.7.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !2)24  !1 = !DIFile(filename: "test.ll", directory: "")25  !2 = !{}26  !4 = distinct !DISubprogram(name: "test", scope: !5, file: !5, line: 4, type: !6, isLocal: false, isDefinition: true, scopeLine: 4, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)27  !5 = !DIFile(filename: "test.c", directory: "")28  !6 = !DISubroutineType(types: !7)29  !7 = !{!8, !8}30  !8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)31  !9 = !{i32 2, !"Dwarf Version", i32 4}32  !10 = !{i32 2, !"Debug Info Version", i32 3}33  !11 = !{!"clang version 3.7.0"}34  !12 = !DILocalVariable(name: "x", arg: 1, scope: !4, file: !5, line: 4, type: !8)35  !13 = !DIExpression()36  !14 = !DILocation(line: 4, scope: !4)37  !15 = !DILocation(line: 8, scope: !4)38 39...40---41name:            test42tracksRegLiveness: true43registers:44  - { id: 0, class: gr32 }45frameInfo:46  maxAlignment:  447stack:48  - { id: 0, name: x.addr, size: 4, alignment: 4 }49body: |50  bb.0.entry:51    %0 = COPY $edi52    ; CHECK: [[@LINE+1]]:28: expected metadata id after '!'53    DBG_VALUE _, 0, !12, ! _54    MOV32mr %stack.0.x.addr, 1, _, 0, _, %055    $eax = COPY %056    RET64 $eax57...58