2015-04-28 22:05:47 +08:00
|
|
|
; RUN: llc -filetype=asm %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
|
|
|
|
target triple = "armv7--linux-gnueabihf"
|
|
|
|
|
|
|
|
; int
|
|
|
|
; main(void)
|
|
|
|
; {
|
|
|
|
; return -1;
|
|
|
|
; }
|
|
|
|
|
|
|
|
; CHECK: test.c:4:5
|
|
|
|
; CHECK: mvn
|
|
|
|
|
|
|
|
; Function Attrs: nounwind
|
2015-11-06 06:03:56 +08:00
|
|
|
define i32 @main() !dbg !4 {
|
2015-04-28 22:05:47 +08:00
|
|
|
entry:
|
|
|
|
%retval = alloca i32, align 4
|
|
|
|
store i32 0, i32* %retval
|
|
|
|
ret i32 -1, !dbg !11
|
|
|
|
}
|
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
|
|
!llvm.module.flags = !{!8, !9}
|
|
|
|
|
2016-04-15 23:57:41 +08:00
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, emissionKind: FullDebug)
|
2015-04-30 00:38:44 +08:00
|
|
|
!1 = !DIFile(filename: "test.c", directory: "/home/user/clang/build")
|
2015-04-28 22:05:47 +08:00
|
|
|
!2 = !{}
|
2016-04-15 23:57:41 +08:00
|
|
|
!4 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2)
|
2015-04-30 00:38:44 +08:00
|
|
|
!5 = !DISubroutineType(types: !6)
|
2015-04-28 22:05:47 +08:00
|
|
|
!6 = !{!7}
|
2015-04-30 00:38:44 +08:00
|
|
|
!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
2015-04-28 22:05:47 +08:00
|
|
|
!8 = !{i32 2, !"Dwarf Version", i32 4}
|
|
|
|
!9 = !{i32 2, !"Debug Info Version", i32 3}
|
|
|
|
!10 = !{i32 1, !"wchar_size", i32 4}
|
2015-04-30 00:38:44 +08:00
|
|
|
!11 = !DILocation(line: 4, column: 5, scope: !4)
|