62 lines · plain
1; RUN: llc -o - %s -mtriple thumbv4-unknown-linux-android | FileCheck --check-prefix=V4 %s2; RUN: llc -o - %s -mtriple thumbv5-unknown-linux-android | FileCheck --check-prefix=V5 %s3 4; V4: udf #2545; V5: bkpt #06 7define i1 @a(i32 %b) !dbg !3 {8 br i1 undef, label %c, label %d, !dbg !49 10d: ; preds = %011 call void @llvm.debugtrap()12 br label %ah, !dbg !413 14c: ; preds = %015 %aj = icmp ne i20 undef, 516 br label %ah, !dbg !417 18ah: ; preds = %c, %d19 %ak = phi i1 [ false, %d ], [ %aj, %c ]20 call void @llvm.dbg.value(metadata i1 %ak, metadata !7, metadata !DIExpression()), !dbg !921 switch i32 %b, label %al [22 i32 0, label %am23 i32 10, label %an24 ]25 26an: ; preds = %ah27 %ch = select i1 %ak, i32 0, i32 528 br label %am, !dbg !1029 30al: ; preds = %ah31 br label %am, !dbg !932 33am: ; preds = %al, %an, %ah34 %1 = phi i32 [ 0, %al ], [ %ch, %an ], [ %b, %ah ]35 unreachable36}37 38; Function Attrs: nounwind readnone speculatable39declare void @llvm.dbg.value(metadata, metadata, metadata) #040 41; Function Attrs: nounwind42declare void @llvm.debugtrap() #143 44attributes #0 = { nounwind readnone speculatable }45attributes #1 = { nounwind }46 47!llvm.dbg.cu = !{!0}48!llvm.module.flags = !{!2}49 50!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug)51!1 = !DIFile(filename: "a", directory: "")52!2 = !{i32 2, !"Debug Info Version", i32 3}53!3 = distinct !DISubprogram(scope: null, isLocal: false, isDefinition: true, isOptimized: false, unit: !0)54!4 = !DILocation(line: 0, scope: !5, inlinedAt: !6)55!5 = distinct !DISubprogram(scope: null, isLocal: false, isDefinition: true, isOptimized: false, unit: !0)56!6 = !DILocation(line: 0, scope: !3)57!7 = !DILocalVariable(scope: !8)58!8 = distinct !DISubprogram(scope: null, isLocal: false, isDefinition: true, isOptimized: false, unit: !0)59!9 = !DILocation(line: 0, scope: !8, inlinedAt: !6)60!10 = !DILocation(line: 0, scope: !11, inlinedAt: !6)61!11 = !DILexicalBlock(scope: !8)62