[x86] Add OpSize16 to instructions that need it
[oota-llvm.git] / test / MC / MachO / gen-dwarf.s
index 6b851354cccca3c98e4d1f3993e5df3dc216866b..d763dd120ab257319a637f2ed9732c5b38541731 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
-// RUN: llvm-dwarfdump %t | FileCheck %s
+// RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s
 
 .globl _bar
 _bar:
@@ -7,6 +7,7 @@ _bar:
 L1:    leave
        ret
 _foo:
+_baz:
        nop
 .data
 _x:    .long 1
@@ -24,12 +25,11 @@ _x: .long 1
 // CHECK:      DW_AT_producer  DW_FORM_string
 // CHECK:      DW_AT_language  DW_FORM_data2
 
-// CHECK: [2] DW_TAG_subprogram        DW_CHILDREN_yes
+// CHECK: [2] DW_TAG_label     DW_CHILDREN_yes
 // CHECK:      DW_AT_name      DW_FORM_string
 // CHECK:      DW_AT_decl_file DW_FORM_data4
 // CHECK:      DW_AT_decl_line DW_FORM_data4
 // CHECK:      DW_AT_low_pc    DW_FORM_addr
-// CHECK:      DW_AT_high_pc   DW_FORM_addr
 // CHECK:      DW_AT_prototyped        DW_FORM_flag
 
 // CHECK: [3] DW_TAG_unspecified_parameters    DW_CHILDREN_no
@@ -45,27 +45,36 @@ _x: .long 1
 // We don't check the file name as it is a temp directory
 // CHECK:    DW_AT_name [DW_FORM_string]
 // We don't check the DW_AT_comp_dir which is the current working directory
-// CHECK:    DW_AT_producer [DW_FORM_string]   ("llvm-mc (based on LLVM 3.1svn)")
+// CHECK:    DW_AT_producer [DW_FORM_string]   ("llvm-mc (based on {{.*}})")
 // CHECK:    DW_AT_language [DW_FORM_data2]    (0x8001)
 
-// CHECK:    DW_TAG_subprogram [2] *
+// CHECK:    DW_TAG_label [2] *
 // CHECK:      DW_AT_name [DW_FORM_string]     ("bar")
 // CHECK:      DW_AT_decl_file [DW_FORM_data4] (0x00000001)
 // CHECK:      DW_AT_decl_line [DW_FORM_data4] (0x00000005)
 // CHECK:      DW_AT_low_pc [DW_FORM_addr]     (0x0000000000000000)
-// CHECK:      DW_AT_high_pc [DW_FORM_addr]    (0x0000000000000007)
 // CHECK:      DW_AT_prototyped [DW_FORM_flag] (0x00)
 
 // CHECK:      DW_TAG_unspecified_parameters [3]  
 
 // CHECK:      NULL
 
-// CHECK:    DW_TAG_subprogram [2] *
+// CHECK:    DW_TAG_label [2] *
 // CHECK:      DW_AT_name [DW_FORM_string]     ("foo")
 // CHECK:      DW_AT_decl_file [DW_FORM_data4] (0x00000001)
 // CHECK:      DW_AT_decl_line [DW_FORM_data4] (0x00000009)
 // CHECK:      DW_AT_low_pc [DW_FORM_addr]     (0x0000000000000007)
-// CHECK:      DW_AT_high_pc [DW_FORM_addr]    (0x0000000000000008)
+// CHECK:      DW_AT_prototyped [DW_FORM_flag] (0x00)
+
+// CHECK:      DW_TAG_unspecified_parameters [3]  
+
+// CHECK:      NULL
+
+// CHECK:    DW_TAG_label [2] *
+// CHECK:      DW_AT_name [DW_FORM_string]     ("baz")
+// CHECK:      DW_AT_decl_file [DW_FORM_data4] (0x00000001)
+// CHECK:      DW_AT_decl_line [DW_FORM_data4] (0x0000000a)
+// CHECK:      DW_AT_low_pc [DW_FORM_addr]     (0x0000000000000007)
 // CHECK:      DW_AT_prototyped [DW_FORM_flag] (0x00)
 
 // CHECK:      DW_TAG_unspecified_parameters [3]  
@@ -77,7 +86,7 @@ _x:   .long 1
 // CHECK: .debug_aranges contents:
 // CHECK: Address Range Header: length = 0x0000001c, version = 0x0002, cu_offset = 0x00000000, addr_size = 0x04, seg_size = 0x00
 
-// CHECK: .debug_lines contents:
+// CHECK: .debug_line contents:
 // CHECK: Line table prologue:
 // We don't check the total_length as it includes lengths of temp paths
 // CHECK:         version: 2
@@ -109,5 +118,5 @@ _x: .long 1
 // CHECK: 0x0000000000000000      6      0      1   0  is_stmt
 // CHECK: 0x0000000000000005      7      0      1   0  is_stmt
 // CHECK: 0x0000000000000006      8      0      1   0  is_stmt
-// CHECK: 0x0000000000000007     10      0      1   0  is_stmt
-// CHECK: 0x0000000000000008     10      0      1   0  is_stmt end_sequence
+// CHECK: 0x0000000000000007     11      0      1   0  is_stmt
+// CHECK: 0x0000000000000008     11      0      1   0  is_stmt end_sequence