Patrik Hagglund | 0acaefa | 2016-06-16 10:48:54 +0000 | [diff] [blame] | 1 | ; RUN: opt -S -march=x86 -scalarizer %s | FileCheck %s |
| 2 | |
| 3 | ; Reproducer for pr27938 |
| 4 | ; https://llvm.org/bugs/show_bug.cgi?id=27938 |
| 5 | |
| 6 | define i16 @f1() !dbg !5 { |
| 7 | ret i16 undef, !dbg !9 |
| 8 | } |
| 9 | |
| 10 | define void @f2() !dbg !10 { |
| 11 | bb1: |
| 12 | %_tmp7 = tail call i16 @f1(), !dbg !13 |
| 13 | ; CHECK: call i16 @f1(), !dbg !13 |
| 14 | %broadcast.splatinsert5 = insertelement <4 x i16> undef, i16 %_tmp7, i32 0 |
| 15 | %broadcast.splat6 = shufflevector <4 x i16> %broadcast.splatinsert5, <4 x i16> undef, <4 x i32> zeroinitializer |
| 16 | br label %vector.body |
| 17 | |
| 18 | vector.body: |
| 19 | br i1 undef, label %middle.block, label %vector.body |
| 20 | |
| 21 | middle.block: |
| 22 | ret void, !dbg !15 |
| 23 | } |
| 24 | |
| 25 | !llvm.dbg.cu = !{!0} |
| 26 | !llvm.module.flags = !{!3, !4} |
| 27 | |
| 28 | !0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly, enums: !2, retainedTypes: !2) |
| 29 | !1 = !DIFile(filename: "dbgloc-bug.c", directory: ".") |
| 30 | !2 = !{} |
| 31 | !3 = !{i32 2, !"Dwarf Version", i32 4} |
| 32 | !4 = !{i32 2, !"Debug Info Version", i32 3} |
| 33 | !5 = distinct !DISubprogram(name: "f1", scope: !1, file: !1, line: 9, type: !6, isLocal: false, isDefinition: true, scopeLine: 10, isOptimized: true, unit: !0, variables: !2) |
| 34 | !6 = !DISubroutineType(types: !7) |
| 35 | !7 = !{!8} |
| 36 | !8 = !DIBasicType(name: "short", size: 16, align: 16, encoding: DW_ATE_signed) |
| 37 | !9 = !DILocation(line: 11, column: 5, scope: !5) |
| 38 | !10 = distinct !DISubprogram(name: "f2", scope: !1, file: !1, line: 14, type: !11, isLocal: false, isDefinition: true, scopeLine: 15, isOptimized: true, unit: !0, variables: !2) |
| 39 | !11 = !DISubroutineType(types: !12) |
| 40 | !12 = !{null} |
| 41 | !13 = !DILocation(line: 24, column: 9, scope: !14) |
| 42 | !14 = !DILexicalBlock(scope: !10, file: !1, line: 17, column: 5) |
| 43 | !15 = !DILocation(line: 28, column: 1, scope: !10) |