]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/X86/2012-11-30-handlemove-dbg.ll
[X86][AVX] Added (V)MOVDDUP / (V)MOVSLDUP / (V)MOVSHDUP memory folding + tests.
[opencl/llvm.git] / test / CodeGen / X86 / 2012-11-30-handlemove-dbg.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-macosx -enable-misched \
2 ; RUN:          -verify-machineinstrs | FileCheck %s
3 ;
4 ; Test LiveInterval update handling of DBG_VALUE.
5 ; rdar://12777252.
6 ;
7 ; CHECK: %entry
8 ; CHECK: DEBUG_VALUE: hg
9 ; CHECK: j
11 %struct.node.0.27 = type { i16, double, [3 x double], i32, i32 }
12 %struct.hgstruct.2.29 = type { %struct.bnode.1.28*, [3 x double], double, [3 x double] }
13 %struct.bnode.1.28 = type { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x double], double, %struct.bnode.1.28*, %struct.bnode.1.28* }
15 declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
17 define signext i16 @subdivp(%struct.node.0.27* nocapture %p, double %dsq, double %tolsq, %struct.hgstruct.2.29* nocapture byval align 8 %hg) nounwind uwtable readonly ssp {
18 entry:
19   call void @llvm.dbg.declare(metadata %struct.hgstruct.2.29* %hg, metadata !4, metadata !{!"0x102"})
20   %type = getelementptr inbounds %struct.node.0.27* %p, i64 0, i32 0
21   %0 = load i16* %type, align 2
22   %cmp = icmp eq i16 %0, 1
23   br i1 %cmp, label %return, label %for.cond.preheader
25 for.cond.preheader:                               ; preds = %entry
26   %arrayidx6.1 = getelementptr inbounds %struct.hgstruct.2.29* %hg, i64 0, i32 1, i64 1
27   %cmp22 = fcmp olt double 0.000000e+00, %dsq
28   %conv24 = zext i1 %cmp22 to i16
29   br label %return
31 return:                                           ; preds = %for.cond.preheader, %entry
32   %retval.0 = phi i16 [ %conv24, %for.cond.preheader ], [ 0, %entry ]
33   ret i16 %retval.0
34 }
36 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
38 !llvm.dbg.cu = !{!0}
39 !llvm.module.flags = !{!12}
41 !0 = !{!"0x11\0012\00clang version 3.3 (trunk 168918) (llvm/trunk 168920)\001\00\000\00\000", !11, !2, !2, !13, !2, null} ; [ DW_TAG_compile_unit ] [MultiSource/Benchmarks/Olden/bh/newbh.c] [DW_LANG_C99]
42 !2 = !{}
43 !4 = !{!"0x101\00hg\0067109589\000", null, !5, !6} ; [ DW_TAG_arg_variable ] [hg] [line 725]
44 !5 = !{!"0x29", !11} ; [ DW_TAG_file_type ]
45 !6 = !{!"0x16\00hgstruct\00492\000\000\000\000", !11, null, !7} ; [ DW_TAG_typedef ] [hgstruct] [line 492, size 0, align 0, offset 0] [from ]
46 !7 = !{!"0x13\00\00487\00512\0064\000\000\000", !11, null, null, null, null, i32 0, null} ; [ DW_TAG_structure_type ] [line 487, size 512, align 64, offset 0] [def] [from ]
47 !11 = !{!"MultiSource/Benchmarks/Olden/bh/newbh.c", !"MultiSource/Benchmarks/Olden/bh"}
48 !12 = !{i32 1, !"Debug Info Version", i32 2}
49 !13 = !{!14}
50 !14 = !{!"0x2e\00subdivp\00subdivp\00\000\000\001\000\006\00256\001\001", !11, !5, !15, null, i16 (%struct.node.0.27*, double, double, %struct.hgstruct.2.29* )* @subdivp, null, null, null} ; [ DW_TAG_subprogram ] [def] [subdivp]
51 !15 = !{!"0x15\00\000\000\000\000\000\000", i32 0, null, null, !16, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
52 !16 = !{null}