1; RUN: llc < %s - | FileCheck %s
2target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"
3target triple = "thumbv7-apple-macosx10.6.7"
4
5;CHECK: sub-register DW_OP_regx
6;CHECK-NEXT: 256
7;CHECK-NEXT: @
8;CHECK-NEXT: DW_OP_piece
9;CHECK-NEXT: 8
10;CHECK-NEXT: sub-register DW_OP_regx
11;CHECK-NEXT: 257
12;CHECK-NEXT: @
13;CHECK-NEXT: DW_OP_piece
14;CHECK-NEXT: 8
15
16@.str = external constant [13 x i8]
17
18declare <4 x float> @test0001(float) nounwind readnone ssp
19
20define i32 @main(i32 %argc, i8** nocapture %argv, <4 x float> %x) nounwind ssp !dbg !10 {
21entry:
22  br label %for.body9
23
24for.body9:                                        ; preds = %for.body9, %entry
25  %add19 = fadd <4 x float> %x, <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, !dbg !39
26  br i1 undef, label %for.end54, label %for.body9, !dbg !44
27
28for.end54:                                        ; preds = %for.body9
29  tail call void @llvm.dbg.value(metadata <4 x float> %add19, metadata !27, metadata !DIExpression()), !dbg !39
30  %tmp115 = extractelement <4 x float> %add19, i32 1
31  %conv6.i75 = fpext float %tmp115 to double, !dbg !45
32  %call.i82 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), double undef, double %conv6.i75, double undef, double undef) nounwind, !dbg !45
33  ret i32 0, !dbg !49
34}
35
36declare i32 @printf(i8* nocapture, ...) nounwind
37
38declare void @llvm.dbg.value(metadata, metadata, metadata) nounwind readnone
39
40!llvm.dbg.cu = !{!2}
41!llvm.module.flags = !{!56}
42
43!0 = distinct !DISubprogram(name: "test0001", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !2, scopeLine: 3, file: !54, scope: !1, type: !3, retainedNodes: !51)
44!1 = !DIFile(filename: "build2.c", directory: "/private/tmp")
45!2 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.0 (trunk 129915)", isOptimized: true, emissionKind: FullDebug, file: !54, enums: !{}, retainedTypes: !{}, imports:  null)
46!3 = !DISubroutineType(types: !4)
47!4 = !{!5}
48!5 = !DIDerivedType(tag: DW_TAG_typedef, name: "v4f32", line: 14, file: !54, scope: !2, baseType: !6)
49!6 = !DICompositeType(tag: DW_TAG_array_type, size: 128, align: 128, file: !1, baseType: !7, elements: !8)
50!7 = !DIBasicType(tag: DW_TAG_base_type, name: "float", size: 32, align: 32, encoding: DW_ATE_float)
51!8 = !{!9}
52!9 = !DISubrange(count: 4)
53!10 = distinct !DISubprogram(name: "main", line: 59, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !2, scopeLine: 59, file: !54, scope: !1, type: !11, retainedNodes: !52)
54!11 = !DISubroutineType(types: !12)
55!12 = !{!13}
56!13 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
57!14 = distinct !DISubprogram(name: "printFV", line: 41, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !2, scopeLine: 41, file: !55, scope: !15, type: !16, retainedNodes: !53)
58!15 = !DIFile(filename: "/Volumes/Lalgate/work/llvm/projects/llvm-test/SingleSource/UnitTests/Vector/helpers.h", directory: "/private/tmp")
59!16 = !DISubroutineType(types: !17)
60!17 = !{null}
61!18 = !DILocalVariable(name: "a", line: 3, arg: 1, scope: !0, file: !1, type: !7)
62!19 = !DILocalVariable(name: "argc", line: 59, arg: 1, scope: !10, file: !1, type: !13)
63!20 = !DILocalVariable(name: "argv", line: 59, arg: 2, scope: !10, file: !1, type: !21)
64!21 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 32, align: 32, scope: !2, baseType: !22)
65!22 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 32, align: 32, scope: !2, baseType: !23)
66!23 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
67!24 = !DILocalVariable(name: "i", line: 60, scope: !25, file: !1, type: !13)
68!25 = distinct !DILexicalBlock(line: 59, column: 33, file: !54, scope: !10)
69!26 = !DILocalVariable(name: "j", line: 60, scope: !25, file: !1, type: !13)
70!27 = !DILocalVariable(name: "x", line: 61, scope: !25, file: !1, type: !5)
71!28 = !DILocalVariable(name: "y", line: 62, scope: !25, file: !1, type: !5)
72!29 = !DILocalVariable(name: "z", line: 63, scope: !25, file: !1, type: !5)
73!30 = !DILocalVariable(name: "F", line: 41, arg: 1, scope: !14, file: !15, type: !31)
74!31 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 32, align: 32, scope: !2, baseType: !32)
75!32 = !DIDerivedType(tag: DW_TAG_typedef, name: "FV", line: 25, file: !55, scope: !2, baseType: !33)
76!33 = !DICompositeType(tag: DW_TAG_union_type, line: 22, size: 128, align: 128, file: !55, scope: !2, elements: !34)
77!34 = !{!35, !37}
78!35 = !DIDerivedType(tag: DW_TAG_member, name: "V", line: 23, size: 128, align: 128, file: !55, scope: !15, baseType: !36)
79!36 = !DIDerivedType(tag: DW_TAG_typedef, name: "v4sf", line: 3, file: !55, scope: !2, baseType: !6)
80!37 = !DIDerivedType(tag: DW_TAG_member, name: "A", line: 24, size: 128, align: 32, file: !55, scope: !15, baseType: !38)
81!38 = !DICompositeType(tag: DW_TAG_array_type, size: 128, align: 32, scope: !2, baseType: !7, elements: !8)
82!39 = !DILocation(line: 79, column: 7, scope: !40)
83!40 = distinct !DILexicalBlock(line: 75, column: 35, file: !54, scope: !41)
84!41 = distinct !DILexicalBlock(line: 75, column: 5, file: !54, scope: !42)
85!42 = distinct !DILexicalBlock(line: 71, column: 32, file: !54, scope: !43)
86!43 = distinct !DILexicalBlock(line: 71, column: 3, file: !54, scope: !25)
87!44 = !DILocation(line: 75, column: 5, scope: !42)
88!45 = !DILocation(line: 42, column: 2, scope: !46, inlinedAt: !48)
89!46 = distinct !DILexicalBlock(line: 42, column: 2, file: !55, scope: !47)
90!47 = distinct !DILexicalBlock(line: 41, column: 28, file: !55, scope: !14)
91!48 = !DILocation(line: 95, column: 3, scope: !25)
92!49 = !DILocation(line: 99, column: 3, scope: !25)
93!51 = !{!18}
94!52 = !{!19, !20, !24, !26, !27, !28, !29}
95!53 = !{!30}
96!54 = !DIFile(filename: "build2.c", directory: "/private/tmp")
97!55 = !DIFile(filename: "/Volumes/Lalgate/work/llvm/projects/llvm-test/SingleSource/UnitTests/Vector/helpers.h", directory: "/private/tmp")
98!56 = !{i32 1, !"Debug Info Version", i32 3}
99