1*9880d681SAndroid Build Coastguard Worker; RUN: llc -O0 -relocation-model pic < %s -o /dev/null 2*9880d681SAndroid Build Coastguard Worker; REQUIRES: default_triple 3*9880d681SAndroid Build Coastguard Worker; PR7545 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker@.str = private constant [4 x i8] c"one\00", align 1 ; <[4 x i8]*> [#uses=1] 6*9880d681SAndroid Build Coastguard Worker@.str1 = private constant [4 x i8] c"two\00", align 1 ; <[5 x i8]*> [#uses=1] 7*9880d681SAndroid Build Coastguard Worker@C.9.2167 = internal constant [2 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str1, i64 0, i64 0)] 8*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!39} 9*9880d681SAndroid Build Coastguard Worker!38 = !DIFile(filename: "pbmsrch.c", directory: "/Users/grawp/LLVM/test-suite/MultiSource/Benchmarks/MiBench/office-stringsearch") 10*9880d681SAndroid Build Coastguard Worker!39 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build 9999)", isOptimized: true, emissionKind: FullDebug, file: !109, enums: !108, retainedTypes: !108) 11*9880d681SAndroid Build Coastguard Worker!46 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, file: !109, baseType: !47) 12*9880d681SAndroid Build Coastguard Worker!47 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char) 13*9880d681SAndroid Build Coastguard Worker!97 = distinct !DISubprogram(name: "main", linkageName: "main", line: 73, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !39, scope: !39, type: !98) 14*9880d681SAndroid Build Coastguard Worker!98 = !DISubroutineType(types: !99) 15*9880d681SAndroid Build Coastguard Worker!99 = !{!100} 16*9880d681SAndroid Build Coastguard Worker!100 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 17*9880d681SAndroid Build Coastguard Worker!101 = !{[2 x i8*]* @C.9.2167} 18*9880d681SAndroid Build Coastguard Worker!102 = !DILocalVariable(name: "find_strings", line: 75, scope: !103, file: !38, type: !104) 19*9880d681SAndroid Build Coastguard Worker!103 = distinct !DILexicalBlock(line: 73, column: 0, file: null, scope: !97) 20*9880d681SAndroid Build Coastguard Worker!104 = !DICompositeType(tag: DW_TAG_array_type, size: 85312, align: 64, file: !109, baseType: !46, elements: !105) 21*9880d681SAndroid Build Coastguard Worker!105 = !{!106} 22*9880d681SAndroid Build Coastguard Worker!106 = !DISubrange(count: 1333) 23*9880d681SAndroid Build Coastguard Worker!107 = !DILocation(line: 73, scope: !103) 24*9880d681SAndroid Build Coastguard Worker!108 = !{i32 0} 25*9880d681SAndroid Build Coastguard Worker!109 = !DIFile(filename: "pbmsrch.c", directory: "/Users/grawp/LLVM/test-suite/MultiSource/Benchmarks/MiBench/office-stringsearch") 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Workerdefine i32 @main() nounwind ssp { 28*9880d681SAndroid Build Coastguard Workerbb.nph: 29*9880d681SAndroid Build Coastguard Worker tail call void @llvm.dbg.declare(metadata [2 x i8*]* @C.9.2167, metadata !102, metadata !DIExpression()), !dbg !107 30*9880d681SAndroid Build Coastguard Worker ret i32 0, !dbg !107 31*9880d681SAndroid Build Coastguard Worker} 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone 34