2017-01-02 19:17:04 +00:00
; RUN: llc -verify-machineinstrs < %s -break-anti-dependencies=all -march=ppc64 -mcpu=g5 | FileCheck %s
2013-12-22 00:04:03 +00:00
; CHECK-LABEL: main:
2012-04-14 13:54:10 +00:00
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
2015-12-30 11:46:15 +00:00
define i32 @main ( i32 %argc , i8 * * nocapture %argv ) nounwind readnone !dbg !5 {
2012-04-14 13:54:10 +00:00
entry:
2015-05-27 18:44:32 +00:00
tail call void @llvm.dbg.value ( metadata i32 %argc , i64 0 , metadata !15 , metadata !DIExpression ( ) ) , !dbg !17
tail call void @llvm.dbg.value ( metadata i8 * * %argv , i64 0 , metadata !16 , metadata !DIExpression ( ) ) , !dbg !18
2012-04-14 13:54:10 +00:00
%add = add nsw i32 %argc , 1 , !dbg !19
ret i32 %add , !dbg !19
}
2015-01-18 16:17:27 +00:00
declare void @llvm.dbg.value ( metadata , i64 , metadata , metadata ) nounwind readnone
2012-04-14 13:54:10 +00:00
!llvm.dbg.cu = ! { !0 }
2013-12-22 00:04:03 +00:00
!llvm.module.flags = ! { !22 }
2012-04-14 13:54:10 +00:00
2016-07-23 20:41:05 +00:00
!0 = distinct !DICompileUnit ( language: D W _ L A N G _ C 99 , producer: "clang version 3.1" , isOptimized: true , emissionKind: F u l l D e b u g , file: !21 , enums: !1 , retainedTypes: !1 , globals: !1 , imports: !1 )
2015-01-18 16:17:27 +00:00
!1 = ! { }
2016-07-23 20:41:05 +00:00
!5 = distinct !DISubprogram ( name: "main" , line: 1 , isLocal: false , isDefinition: true , virtualIndex: 6 , flags: D I F l a g P r o t o t y p e d , isOptimized: true , unit: !0 , file: !21 , scope: null , type: !7 , variables: !13 )
2015-05-27 18:44:32 +00:00
!6 = !DIFile ( filename: "dbg.c" , directory: "/src" )
!7 = !DISubroutineType ( types: !8 )
2015-01-18 16:17:27 +00:00
!8 = ! { !9 , !9 , !10 }
2015-05-27 18:44:32 +00:00
!9 = !DIBasicType ( tag: D W _ T A G _ b a s e _ type , name: "int" , size: 32 , align: 32 , encoding: D W _ A T E _ s i g n e d )
!10 = !DIDerivedType ( tag: D W _ T A G _ p o i n t e r _ type , size: 64 , align: 64 , baseType: !11 )
!11 = !DIDerivedType ( tag: D W _ T A G _ p o i n t e r _ type , size: 64 , align: 64 , baseType: !12 )
!12 = !DIBasicType ( tag: D W _ T A G _ b a s e _ type , name: "char" , size: 8 , align: 8 , encoding: D W _ A T E _ u n s i g n e d _ c h a r )
2015-01-18 16:17:27 +00:00
!13 = ! { !15 , !16 }
2015-12-30 11:46:15 +00:00
!15 = !DILocalVariable ( name: "argc" , line: 1 , arg: 1 , scope: !5 , file: !6 , type: !9 )
!16 = !DILocalVariable ( name: "argv" , line: 1 , arg: 2 , scope: !5 , file: !6 , type: !10 )
2015-05-27 18:44:32 +00:00
!17 = !DILocation ( line: 1 , column: 14 , scope: !5 )
!18 = !DILocation ( line: 1 , column: 26 , scope: !5 )
!19 = !DILocation ( line: 2 , column: 3 , scope: !20 )
!20 = distinct !DILexicalBlock ( line: 1 , column: 34 , file: !21 , scope: !5 )
!21 = !DIFile ( filename: "dbg.c" , directory: "/src" )
!22 = ! { i32 1 , !"Debug Info Version" , i32 3 }