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