blob: 742c50d029878a7f7856cb161b3d16eb7bef461f [file] [log] [blame]
Adrian Prantlf393d312016-04-28 15:37:48 +00001; RUN: llc -O0 -filetype=obj -mtriple=armeb-none-linux %s -o - \
2; RUN: | llvm-dwarfdump --debug-dump=info - | FileCheck %s
3; Generated from:
4; struct S {
5; int j:5;
6; int k:6;
7; int m:5;
8; int n:8;
9; } s;
10
11target datalayout = "E-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
12
13%struct.S = type { i24 }
14
15@s = common global %struct.S zeroinitializer, align 4
16
17!llvm.dbg.cu = !{!0}
18!llvm.module.flags = !{!12, !13, !14}
19!llvm.ident = !{!15}
20
21!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.9.0 (trunk 267633)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !3)
22!1 = !DIFile(filename: "bitfield.c", directory: "/Volumes/Data/llvm")
23!2 = !{}
24!3 = !{!4}
25!4 = distinct !DIGlobalVariable(name: "s", scope: !0, file: !1, line: 6, type: !5, isLocal: false, isDefinition: true, variable: %struct.S* @s)
26!5 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "S", file: !1, line: 1, size: 32, align: 32, elements: !6)
27!6 = !{!7, !9, !10, !11}
28; CHECK: DW_TAG_member
29; CHECK-NEXT: DW_AT_name{{.*}}"j"
30; CHECK-NOT: DW_TAG
31; CHECK: DW_AT_data_bit_offset [DW_FORM_data1] (0x00)
32; CHECK: DW_AT_data_member_location [DW_FORM_data1] (0x00)
33!7 = !DIDerivedType(tag: DW_TAG_member, name: "j", scope: !5, file: !1, line: 2, baseType: !8, size: 5, align: 32)
34!8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
35; CHECK: DW_TAG_member
36; CHECK-NEXT: DW_AT_name{{.*}}"k"
37; CHECK-NOT: DW_TAG
38; CHECK: DW_AT_data_bit_offset [DW_FORM_data1] (0x05)
39; CHECK: DW_AT_data_member_location [DW_FORM_data1] (0x00)
40!9 = !DIDerivedType(tag: DW_TAG_member, name: "k", scope: !5, file: !1, line: 3, baseType: !8, size: 6, align: 32, offset: 5)
41; CHECK: DW_TAG_member
42; CHECK-NEXT: DW_AT_name{{.*}}"m"
43; CHECK-NOT: DW_TAG
44; CHECK: DW_AT_data_bit_offset [DW_FORM_data1] (0x0b)
45; CHECK: DW_AT_data_member_location [DW_FORM_data1] (0x00)
46!10 = !DIDerivedType(tag: DW_TAG_member, name: "m", scope: !5, file: !1, line: 4, baseType: !8, size: 5, align: 32, offset: 11)
47; CHECK: DW_TAG_member
48; CHECK-NEXT: DW_AT_name{{.*}}"n"
49; CHECK-NOT: DW_TAG
50; CHECK: DW_AT_data_bit_offset [DW_FORM_data1] (0x10)
51; CHECK: DW_AT_data_member_location [DW_FORM_data1] (0x00)
52!11 = !DIDerivedType(tag: DW_TAG_member, name: "n", scope: !5, file: !1, line: 5, baseType: !8, size: 8, align: 32, offset: 16)
53!12 = !{i32 2, !"Dwarf Version", i32 4}
54!13 = !{i32 2, !"Debug Info Version", i32 3}
55!14 = !{i32 1, !"PIC Level", i32 2}
56!15 = !{!"clang version 3.9.0 (trunk 267633)"}