brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · db198fc Raw
51 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; Check for some sane output (original problem was a crash).3; CHECK: DEBUG_VALUE: fred:Count <- 04 5target triple = "hexagon"6 7; Function Attrs: nounwind8define i32 @f0(i32 %a0, ptr %a1) local_unnamed_addr #0 !dbg !5 {9b0:10  br label %b111 12b1:                                               ; preds = %b013  call void @llvm.dbg.value(metadata i32 0, metadata !8, metadata !DIExpression()), !dbg !1014  br label %b215 16b2:                                               ; preds = %b3, %b117  %v0 = phi i32 [ 0, %b1 ], [ %v2, %b3 ]18  %v1 = tail call ptr %a1(i32 12, ptr null) #019  br label %b320 21b3:                                               ; preds = %b222  %v2 = add nuw i32 %v0, 123  %v3 = icmp ult i32 %v2, %a024  br i1 %v3, label %b2, label %b425 26b4:                                               ; preds = %b327  ret i32 028}29 30; Function Attrs: nounwind readnone speculatable31declare void @llvm.dbg.value(metadata, metadata, metadata) #132 33attributes #0 = { nounwind }34attributes #1 = { nounwind readnone speculatable }35 36!llvm.dbg.cu = !{!0}37!llvm.module.flags = !{!3, !4}38 39!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)40!1 = !DIFile(filename: "file.c", directory: "/")41!2 = !{}42!3 = !{i32 2, !"Dwarf Version", i32 4}43!4 = !{i32 2, !"Debug Info Version", i32 3}44!5 = distinct !DISubprogram(name: "fred", scope: !1, file: !1, line: 116, type: !6, isLocal: false, isDefinition: true, scopeLine: 121, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !7)45!6 = !DISubroutineType(types: !2)46!7 = !{!8}47!8 = !DILocalVariable(name: "Count", scope: !5, file: !1, line: 1, type: !9)48!9 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)49!10 = !DILocation(line: 1, column: 1, scope: !5, inlinedAt: !11)50!11 = distinct !DILocation(line: 1, column: 1, scope: !5)51