63 lines · plain
1; RUN: llc -mtriple=hexagon -enable-misched=true < %s | FileCheck %s2; This test checks the delayed emission of CFI instructions3; This test also checks the proper initialization of RegisterPressureTracker.4; The RegisterPressureTracker must skip debug instructions upon entry of a BB5 6target triple = "hexagon-unknown--elf"7 8; Check that allocframe was packetized with the two adds.9; CHECK: f0:10; CHECK: {11; CHECK-DAG: allocframe12; CHECK-DAG: add13; CHECK-DAG: add14; CHECK: }15; CHECK: dealloc_return16; CHECK: }17 18 19; Function Attrs: nounwind20define i32 @f0(i32 %a0, i32 %a1) #0 !dbg !5 {21b0:22 call void @llvm.dbg.value(metadata i32 %a0, metadata !10, metadata !DIExpression()), !dbg !1223 call void @llvm.dbg.value(metadata i32 %a1, metadata !11, metadata !DIExpression()), !dbg !1324 %v0 = add nsw i32 %a0, 1, !dbg !1425 %v1 = add nsw i32 %a1, 1, !dbg !1526 %v2 = tail call i32 @f1(i32 %v0, i32 %v1) #3, !dbg !1627 %v3 = add nsw i32 %v2, 1, !dbg !1728 ret i32 %v3, !dbg !1829}30 31declare i32 @f1(i32, i32) #132 33; Function Attrs: nounwind readnone speculatable34declare void @llvm.dbg.value(metadata, metadata, metadata) #235 36attributes #0 = { nounwind "target-cpu"="hexagonv55" }37attributes #1 = { "target-cpu"="hexagonv55" }38attributes #2 = { nounwind readnone speculatable }39attributes #3 = { nounwind }40 41!llvm.dbg.cu = !{!0}42!llvm.module.flags = !{!3, !4}43 44!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)45!1 = !DIFile(filename: "test.c", directory: "/test")46!2 = !{}47!3 = !{i32 2, !"Dwarf Version", i32 4}48!4 = !{i32 2, !"Debug Info Version", i32 3}49!5 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 3, type: !6, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !9)50!6 = !DISubroutineType(types: !7)51!7 = !{!8, !8, !8}52!8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)53!9 = !{!10, !11}54!10 = !DILocalVariable(name: "x", arg: 1, scope: !5, file: !1, line: 3, type: !8)55!11 = !DILocalVariable(name: "y", arg: 2, scope: !5, file: !1, line: 3, type: !8)56!12 = !DILocation(line: 3, column: 13, scope: !5)57!13 = !DILocation(line: 3, column: 20, scope: !5)58!14 = !DILocation(line: 4, column: 15, scope: !5)59!15 = !DILocation(line: 4, column: 20, scope: !5)60!16 = !DILocation(line: 4, column: 10, scope: !5)61!17 = !DILocation(line: 4, column: 24, scope: !5)62!18 = !DILocation(line: 4, column: 3, scope: !5)63