Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -O1 < %s
      2 ; ModuleID = 'pr6157.bc'
      3 ; formerly crashed in SelectionDAGBuilder
      4 
      5 %tart.reflect.ComplexType = type { double, double }
      6 
      7 @.type.SwitchStmtTest = constant %tart.reflect.ComplexType { double 3.0, double 2.0 }
      8 
      9 define i32 @"main(tart.core.String[])->int32"(i32 %args) {
     10 entry:
     11   tail call void @llvm.dbg.value(metadata %tart.reflect.ComplexType* @.type.SwitchStmtTest, i64 0, metadata !8, metadata !MDExpression()), !dbg !MDLocation(scope: !9)
     12   tail call void @"tart.reflect.ComplexType.create->tart.core.Object"(%tart.reflect.ComplexType* @.type.SwitchStmtTest) ; <%tart.core.Object*> [#uses=2]
     13   ret i32 3
     14 }
     15 
     16 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
     17 declare void @"tart.reflect.ComplexType.create->tart.core.Object"(%tart.reflect.ComplexType*) nounwind readnone
     18 
     19 !0 = !MDCompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: 0, file: !15, enums: !16, retainedTypes: !16)
     20 !1 = !MDDerivedType(tag: DW_TAG_const_type, size: 192, align: 64, file: !15, scope: !0, baseType: !2)
     21 !2 = !MDCompositeType(tag: DW_TAG_structure_type, name: "C", line: 1, size: 192, align: 64, file: !15, scope: !0, elements: !3)
     22 !3 = !{!4, !6, !7}
     23 !4 = !MDDerivedType(tag: DW_TAG_member, name: "x", line: 1, size: 64, align: 64, file: !15, scope: !2, baseType: !5)
     24 !5 = !MDBasicType(tag: DW_TAG_base_type, name: "double", size: 64, align: 64, encoding: DW_ATE_float)
     25 !6 = !MDDerivedType(tag: DW_TAG_member, name: "y", line: 1, size: 64, align: 64, offset: 64, file: !15, scope: !2, baseType: !5)
     26 !7 = !MDDerivedType(tag: DW_TAG_member, name: "z", line: 1, size: 64, align: 64, offset: 128, file: !15, scope: !2, baseType: !5)
     27 !8 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "t", line: 5, scope: !9, file: !0, type: !2)
     28 !9 = distinct !MDLexicalBlock(line: 0, column: 0, file: null, scope: !10)
     29 !10 = !MDSubprogram(name: "foo", linkageName: "foo", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scope: !0, type: !11)
     30 !11 = !MDSubroutineType(types: !12)
     31 !12 = !{!13}
     32 !13 = !MDBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
     33 !14 = !{%tart.reflect.ComplexType* @.type.SwitchStmtTest}
     34 !15 = !MDFile(filename: "sm.c", directory: "")
     35 !16 = !{i32 0}
     36