2013-07-25 06:23:00 +08:00
; RUN: llc -O0 < %s | FileCheck %s
2011-11-18 07:43:15 +08:00
; Radar 10464995
2016-12-22 08:45:21 +08:00
source_filename = "test/DebugInfo/X86/dbg-subrange.ll"
2011-11-18 07:43:15 +08: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-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.7.2"
2016-12-22 08:45:21 +08:00
@s = common global [ 4294967296 x i8 ] zeroinitializer , align 16 , !dbg !0
2014-10-01 08:56:55 +08:00
; CHECK: .quad 4294967296 ## DW_AT_count
2011-11-18 07:43:15 +08:00
2016-12-22 08:45:21 +08:00
; Function Attrs: nounwind ssp uwtable
define void @bar ( ) #0 !dbg !11 {
2011-11-18 07:43:15 +08:00
entry:
2016-12-22 08:45:21 +08:00
store i8 97 , i8 * getelementptr inbounds ( [ 4294967296 x i8 ] , [ 4294967296 x i8 ] * @s , i32 0 , i64 0 ) , align 1 , !dbg !14
ret void , !dbg !16
2011-11-18 07:43:15 +08:00
}
2016-12-22 08:45:21 +08:00
attributes #0 = { nounwind ssp uwtable }
!llvm.dbg.cu = ! { !7 }
!llvm.module.flags = ! { !10 }
2017-08-31 02:06:51 +08:00
!0 = !DIGlobalVariableExpression ( var: !1 , expr: !DIExpression ( ) )
2016-12-22 08:45:21 +08:00
!1 = !DIGlobalVariable ( name: "s" , scope: null , file: !2 , line: 2 , type: !3 , isLocal: false , isDefinition: true )
!2 = !DIFile ( filename: "small.c" , directory: "/private/tmp" )
!3 = !DICompositeType ( tag: D W _ T A G _ a r r a y _ type , baseType: !4 , size: 34359738368 , align: 8 , elements: !5 )
!4 = !DIBasicType ( name: "char" , size: 8 , align: 8 , encoding: D W _ A T E _ s i g n e d _ c h a r )
!5 = ! { !6 }
!6 = !DISubrange ( count: 4294967296 )
!7 = distinct !DICompileUnit ( language: D W _ L A N G _ C 99 , file: !2 , producer: "clang version 3.1 (trunk 144833)" , isOptimized: false , runtimeVersion: 0 , emissionKind: F u l l D e b u g , enums: !8 , retainedTypes: !8 , globals: !9 , imports: !8 )
!8 = ! { }
!9 = ! { !0 }
!10 = ! { i32 1 , !"Debug Info Version" , i32 3 }
!11 = distinct !DISubprogram ( name: "bar" , scope: !2 , file: !2 , line: 4 , type: !12 , isLocal: false , isDefinition: true , virtualIndex: 6 , flags: D I F l a g P r o t o t y p e d , isOptimized: false , unit: !7 )
!12 = !DISubroutineType ( types: !13 )
!13 = ! { null }
!14 = !DILocation ( line: 5 , column: 3 , scope: !15 )
!15 = distinct !DILexicalBlock ( scope: !11 , file: !2 , line: 4 , column: 1 )
!16 = !DILocation ( line: 6 , column: 1 , scope: !15 )
2011-11-18 07:43:15 +08:00