brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 506ed6a Raw
66 lines · plain
1# RUN: llc < %s -run-pass=wasm-reg-stackify -x=mir 2>&1 | FileCheck %s2 3# CHECK: body:4# CHECK: bb.0:5# CHECK: %[[REG1:[0-9]+]]:i32 = CONST_I32 0,6# CHECK-NEXT: DBG_VALUE %[[REG1]],7# CHECK-NEXT: CALL @foo, %[[REG1]],8# CHECK: bb.1:9# CHECK: %[[REG2:[0-9]+]]:i32 = CONST_I32 0,10# CHECK-NEXT: DBG_VALUE %[[REG2]],11# CHECK-NEXT: CALL @foo, %[[REG2]],12# CHECK: %[[REG3:[0-9]+]]:i32 = CONST_I32 0,13# CHECK-NEXT: DBG_VALUE %[[REG3]],14# CHECK-NEXT: CALL @foo, %[[REG3]],15 16--- |17  target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"18  target triple = "wasm32-unknown-unknown"19 20  declare void @foo(i32)21  declare i32 @bar()22 23  define void @test(i64 %arg) !dbg !6 {24    unreachable25  }26 27  !llvm.dbg.cu = !{!0}28  !llvm.module.flags = !{!4}29  !0 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !2, producer: "clang LLVM (rustc version 1.30.0-dev)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !1, globals: !1)30  !1 = !{}31  !2 = !DIFile(filename: "<unknown>", directory: "")32  !3 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "&str", file: !2, size: 64, align: 32, elements: !{}, identifier: "111094d970b097647de579f9c509ef08")33  !4 = !{i32 2, !"Debug Info Version", i32 3}34  !5 = distinct !DILexicalBlock(scope: !6, file: !2, line: 357, column: 8)35  !6 = distinct !DISubprogram(name: "test", scope: !7, file: !2, line: 353, type: !8, isLocal: true, isDefinition: true, scopeLine: 353, flags: DIFlagPrototyped, isOptimized: true, unit: !0, templateParams: !1, retainedNodes: !9)36  !7 = !DINamespace(name: "ptr", scope: null)37  !8 = !DISubroutineType(types: !1)38  !9 = !{!10}39  !10 = !DILocalVariable(name: "val0", scope: !5, file: !2, line: 357, type: !3, align: 4)40  !11 = !DILocalVariable(name: "val1", scope: !5, file: !2, line: 358, type: !3, align: 4)41  !12 = !DILocalVariable(name: "val2", scope: !5, file: !2, line: 359, type: !3, align: 4)42  !13 = !DILocation(line: 357, column: 12, scope: !5)43  !14 = !DILocation(line: 358, column: 12, scope: !5)44  !15 = !DILocation(line: 359, column: 12, scope: !5)45 46---47name: test48liveins:49  - { reg: '$arguments' }50tracksRegLiveness: true51body: |52  bb.0:53    successors: %bb.154    liveins: $arguments55    %0:i64 = ARGUMENT_i64 0, implicit $arguments56    %1:i32 = CONST_I32 0, implicit-def dead $arguments57    DBG_VALUE %1:i32, $noreg, !10, !DIExpression(), debug-location !13; <unknown>:357:12 line no:35758    CALL @foo, %1:i32, implicit-def dead $arguments, implicit $sp32, implicit $sp6459 60  bb.1:61    CALL @foo, %1:i32, implicit-def dead $arguments, implicit $sp32, implicit $sp6462    CALL @foo, %1:i32, implicit-def dead $arguments, implicit $sp32, implicit $sp6463    RETURN implicit-def dead $arguments64 65...66