590b67ec8d07e02ce96b5b7d5e0ad060aa9871b7
[oota-llvm.git] / test / DebugInfo / ARM / constant-dbgloc.ll
1 ; RUN: llc -filetype=asm %s -o - | FileCheck %s
2 ; XFAIL: *
3 ; disabled until constant coalescing is resolved
4
5 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
6 target triple = "armv7--linux-gnueabihf"
7
8 ; int
9 ; main(void)
10 ; {
11 ;     return -1;
12 ; }
13
14 ; CHECK: test.c:4:5
15 ; CHECK: mvn
16
17 ; Function Attrs: nounwind
18 define i32 @main() {
19 entry:
20   %retval = alloca i32, align 4
21   store i32 0, i32* %retval
22   ret i32 -1, !dbg !11
23 }
24
25 !llvm.dbg.cu = !{!0}
26 !llvm.module.flags = !{!8, !9}
27
28 !0 = !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, subprograms: !3)
29 !1 = !DIFile(filename: "test.c", directory: "/home/user/clang/build")
30 !2 = !{}
31 !3 = !{!4}
32 !4 = !DISubprogram(name: "main", scope: !1, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, function: i32 ()* @main, variables: !2)
33 !5 = !DISubroutineType(types: !6)
34 !6 = !{!7}
35 !7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
36 !8 = !{i32 2, !"Dwarf Version", i32 4}
37 !9 = !{i32 2, !"Debug Info Version", i32 3}
38 !10 = !{i32 1, !"wchar_size", i32 4}
39 !11 = !DILocation(line: 4, column: 5, scope: !4)