Revert r227242 - Merge vector stores into wider vector stores (PR21711).
[oota-llvm.git] / test / CodeGen / X86 / 2010-11-02-DbgParameter.ll
1 ; RUN: llc -O2 -asm-verbose < %s | FileCheck %s
2 ; Radar 8616981
3
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"
5 target triple = "i386-apple-darwin11.0.0"
6
7 %struct.bar = type { i32, i32 }
8
9 define i32 @foo(%struct.bar* nocapture %i) nounwind readnone optsize noinline ssp {
10 ; CHECK: TAG_formal_parameter
11 entry:
12   tail call void @llvm.dbg.value(metadata %struct.bar* %i, i64 0, metadata !6, metadata !{!"0x102"}), !dbg !12
13   ret i32 1, !dbg !13
14 }
15
16 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
17
18 !llvm.dbg.cu = !{!2}
19 !llvm.module.flags = !{!19}
20
21 !0 = !{!"0x2e\00foo\00foo\00\003\000\001\000\006\00256\001\003", !17, !1, !3, null, i32 (%struct.bar*)* @foo, null, null, !16} ; [ DW_TAG_subprogram ]
22 !1 = !{!"0x29", !17} ; [ DW_TAG_file_type ]
23 !2 = !{!"0x11\0012\00clang version 2.9 (trunk 117922)\001\00\000\00\000", !17, !18, !18, !15, null,  null} ; [ DW_TAG_compile_unit ]
24 !3 = !{!"0x15\00\000\000\000\000\000\000", !17, !1, null, !4, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
25 !4 = !{!5}
26 !5 = !{!"0x24\00int\000\0032\0032\000\000\005", !17, !2} ; [ DW_TAG_base_type ]
27 !6 = !{!"0x101\00i\003\000", !0, !1, !7} ; [ DW_TAG_arg_variable ]
28 !7 = !{!"0xf\00\000\0032\0032\000\000", !17, !1, !8} ; [ DW_TAG_pointer_type ]
29 !8 = !{!"0x13\00bar\002\0064\0032\000\000\000", !17, !1, null, !9, null, null, null} ; [ DW_TAG_structure_type ] [bar] [line 2, size 64, align 32, offset 0] [def] [from ]
30 !9 = !{!10, !11}
31 !10 = !{!"0xd\00x\002\0032\0032\000\000", !17,  !1, !5} ; [ DW_TAG_member ]
32 !11 = !{!"0xd\00y\002\0032\0032\0032\000", !17, !1, !5} ; [ DW_TAG_member ]
33 !12 = !MDLocation(line: 3, column: 47, scope: !0)
34 !13 = !MDLocation(line: 4, column: 2, scope: !14)
35 !14 = !{!"0xb\003\0050\000", !17, !0} ; [ DW_TAG_lexical_block ]
36 !15 = !{!0}
37 !16 = !{!6}
38 !17 = !{!"one.c", !"/private/tmp"}
39 !18 = !{i32 0}
40 !19 = !{i32 1, !"Debug Info Version", i32 2}