diff options
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll | 11 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll | 12 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/debug-info-blocks.ll | 12 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/debug-info-sreg2.ll | 7 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2010-01-18-DbgValue.ll | 3 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll | 3 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/dbg-baseptr.ll | 18 |
7 files changed, 18 insertions, 48 deletions
diff --git a/llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll b/llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll index 2cd12c8e2fe..2cae9ca82d3 100644 --- a/llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll +++ b/llvm/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll @@ -9,24 +9,17 @@ target triple = "thumbv7-apple-darwin10" @x3 = internal global i8 1, align 1, !dbg !6 @x4 = internal global i8 1, align 1, !dbg !8 @x5 = global i8 1, align 1, !dbg !10 -; Check debug info output for merged global. -; DW_AT_location -; 0x03 DW_OP_addr -; 0x.. .long __MergedGlobals -; 0x10 DW_OP_constu -; 0x.. offset -; 0x22 DW_OP_plus ; CHECK: DW_TAG_variable ; CHECK-NOT: DW_TAG ; CHECK: DW_AT_name {{.*}} "x1" ; CHECK-NOT: {{DW_TAG|NULL}} -; CHECK: DW_AT_location [DW_FORM_exprloc] (<0x5> 03 [[ADDR:.. .. .. ..]] ) +; CHECK: DW_AT_location [DW_FORM_exprloc] (DW_OP_addr [[ADDR:0x[0-9a-fA-F]+]]) ; CHECK: DW_TAG_variable ; CHECK-NOT: DW_TAG ; CHECK: DW_AT_name {{.*}} "x2" ; CHECK-NOT: {{DW_TAG|NULL}} -; CHECK: DW_AT_location [DW_FORM_exprloc] (<0x7> 03 [[ADDR]] 23 01 ) +; CHECK: DW_AT_location [DW_FORM_exprloc] (DW_OP_addr [[ADDR]], DW_OP_plus_uconst 0x1) ; Function Attrs: nounwind optsize define zeroext i8 @get1(i8 zeroext %a) #0 !dbg !16 { diff --git a/llvm/test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll b/llvm/test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll index 379bc16555b..79541a7594a 100644 --- a/llvm/test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll +++ b/llvm/test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll @@ -1,23 +1,15 @@ ; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-dump=info - | FileCheck %s -; Check debug info output for merged global. -; DW_AT_location -; 0x03 DW_OP_addr -; 0x.. .long __MergedGlobals -; 0x10 DW_OP_constu -; 0x.. offset -; 0x22 DW_OP_plus - ; CHECK: DW_TAG_variable ; CHECK-NOT: DW_TAG ; CHECK: DW_AT_name {{.*}} "x1" ; CHECK-NOT: {{DW_TAG|NULL}} -; CHECK: DW_AT_location [DW_FORM_exprloc] (<0x5> 03 [[ADDR:.. .. .. ..]] ) +; CHECK: DW_AT_location [DW_FORM_exprloc] (DW_OP_addr [[ADDR:0x[0-9a-fA-F]+]]) ; CHECK: DW_TAG_variable ; CHECK-NOT: DW_TAG ; CHECK: DW_AT_name {{.*}} "x2" ; CHECK-NOT: {{DW_TAG|NULL}} -; CHECK: DW_AT_location [DW_FORM_exprloc] (<0x7> 03 [[ADDR]] 23 04 ) +; CHECK: DW_AT_location [DW_FORM_exprloc] (DW_OP_addr [[ADDR]], DW_OP_plus_uconst 0x4) source_filename = "test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll" target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32" diff --git a/llvm/test/CodeGen/ARM/debug-info-blocks.ll b/llvm/test/CodeGen/ARM/debug-info-blocks.ll index 5aa5fcda93c..654bff424a8 100644 --- a/llvm/test/CodeGen/ARM/debug-info-blocks.ll +++ b/llvm/test/CodeGen/ARM/debug-info-blocks.ll @@ -5,17 +5,11 @@ ; CHECK-NOT: DW_TAG_subprogram ; CHECK: DW_TAG_variable ; CHECK-NOT: DW_TAG -; CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] ([[MYDATA_LOC:0x[0-9a-f]*]]) +; CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] +; CHECK-NEXT: 0x{{.*}} - 0x{{.*}}: {{.*}} DW_OP_plus_uconst 0x4, DW_OP_deref, DW_OP_plus_uconst 0x18 +; CHECK-NEXT: 0x{{.*}} - 0x{{.*}}: {{.*}} DW_OP_plus_uconst 0x4, DW_OP_deref, DW_OP_plus_uconst 0x18 ; CHECK-NEXT: DW_AT_name {{.*}} "mydata" -; debug_loc content -; CHECK: .debug_loc contents: -; CHECK: [[MYDATA_LOC]]: Beginning address offset: {{.*}} -; CHECK-NOT: {{0x[0-9a-f]*}}: Beginning address offset -; CHECK: Location description: {{.*}} 23 04 06 23 18 -; CHECK-NOT: {{0x[0-9a-f]*}}: Beginning address offset -; CHECK: Location description: {{.*}} 23 04 06 23 18 - ; Radar 9331779 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32" target triple = "thumbv7-apple-ios" diff --git a/llvm/test/CodeGen/ARM/debug-info-sreg2.ll b/llvm/test/CodeGen/ARM/debug-info-sreg2.ll index 3b435a1ab29..ec2bd04e185 100644 --- a/llvm/test/CodeGen/ARM/debug-info-sreg2.ll +++ b/llvm/test/CodeGen/ARM/debug-info-sreg2.ll @@ -5,12 +5,9 @@ target triple = "thumbv7-apple-macosx10.6.7" ; Just making sure the first part of the location isn't a repetition ; of the size of the location description. -; -; 0x90 DW_OP_regx of super-register -; CHECK: 0x00000000: Beginning address offset: -; CHECK-NEXT: Ending address offset: -; CHECK-NEXT: Location description: 90 {{.. .. $}} +; CHECK: 0x00000000: +; CHECK-NEXT: 0x{{[0-9]*[a-f]*}} - 0x{{[0-9]*[a-f]*}}: DW_OP_regx D8 define void @_Z3foov() optsize ssp !dbg !1 { entry: diff --git a/llvm/test/CodeGen/X86/2010-01-18-DbgValue.ll b/llvm/test/CodeGen/X86/2010-01-18-DbgValue.ll index 60f441cff72..cbac015c357 100644 --- a/llvm/test/CodeGen/X86/2010-01-18-DbgValue.ll +++ b/llvm/test/CodeGen/X86/2010-01-18-DbgValue.ll @@ -5,8 +5,7 @@ ; CHECK-LABEL: DW_TAG_subprogram ; CHECK: DW_AT_name [DW_FORM_strp] ( {{.*}}"foo") ; CHECK: DW_TAG_formal_parameter -; CHECK-NEXT: DW_AT_location [DW_FORM_exprloc] (<0x2> 91 {{..}} ) -; DW_OP_fbreg ?? +; CHECK-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_fbreg {{[^ ]*}}) ; CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( {{.*}}"my_r0") %struct.Pt = type { double, double } diff --git a/llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll b/llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll index d4f4e905710..68edc1c3edb 100644 --- a/llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll +++ b/llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll @@ -9,7 +9,8 @@ target triple = "x86_64-apple-darwin10.0.0" ; CHECK: DW_TAG_variable ; CHECK: DW_TAG_variable ; CHECK-NEXT: DW_AT_location -; CHECK-NEXT: DW_AT_name {{.*}} "z_s" +; CHECK-NOT: DW_{{TAG|AT}} +; CHECK: DW_AT_name {{.*}} "z_s" ; CHECK-NEXT: DW_AT_decl_file ; CHECK-NEXT: DW_AT_decl_line ; CHECK-NEXT: DW_AT_type{{.*}}{[[TYPE:.*]]} diff --git a/llvm/test/CodeGen/X86/dbg-baseptr.ll b/llvm/test/CodeGen/X86/dbg-baseptr.ll index 893ca93a994..5dd1056b44e 100644 --- a/llvm/test/CodeGen/X86/dbg-baseptr.ll +++ b/llvm/test/CodeGen/X86/dbg-baseptr.ll @@ -22,12 +22,10 @@ define i32 @f0(%struct.s* byval align 8 %input) !dbg !8 { ; DWARF-LABEL: .debug_info contents: ; DWARF-LABEL: DW_TAG_subprogram -; DWARF: DW_AT_frame_base [DW_FORM_exprloc] (<0x1> 57 ) -; 0x57 -> RSP +; DWARF: DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_reg7 RSP) ; DWARF: DW_AT_name [DW_FORM_strp] ( {{.*}}"f0") ; DWARF: DW_TAG_formal_parameter -; DWARF-NEXT: DW_AT_location [DW_FORM_exprloc] (<0x2> 91 08 ) -; DW_OP_fbreg (0x91) 0x08 +; DWARF-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_fbreg +8) ; DWARF-NEXT: DW_AT_name [DW_FORM_strp] ( {{.*}}"input") @@ -48,12 +46,10 @@ define i32 @f1(%struct.s* byval align 8 %input) !dbg !19 { } ; DWARF-LABEL: DW_TAG_subprogram -; DWARF: DW_AT_frame_base [DW_FORM_exprloc] (<0x1> 56 ) -; 0x56 -> RBP +; DWARF: DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_reg6 RBP) ; DWARF: DW_AT_name [DW_FORM_strp] ( {{.*}}"f1") ; DWARF: DW_TAG_formal_parameter -; DWARF-NEXT: DW_AT_location [DW_FORM_exprloc] (<0x2> 91 10 ) -; DW_OP_fbreg (0x91) 0x10 +; DWARF-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_fbreg +16) ; DWARF-NEXT: DW_AT_name [DW_FORM_strp] ( {{.*}}"input") ; CHECK-LABEL: f2: @@ -75,12 +71,10 @@ define i32 @f2(%struct.s* byval align 8 %input) !dbg !22 { ; "input" should still be referred to through RBP. ; DWARF-LABEL: DW_TAG_subprogram -; DWARF: DW_AT_frame_base [DW_FORM_exprloc] (<0x1> 56 ) -; 0x56 -> RBP +; DWARF: DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_reg6 RBP) ; DWARF: DW_AT_name [DW_FORM_strp] ( {{.*}}"f2") ; DWARF: DW_TAG_formal_parameter -; DWARF-NEXT: DW_AT_location [DW_FORM_exprloc] (<0x2> 91 10 ) -; DW_OP_fbreg (0x91) 0x10 +; DWARF-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_fbreg +16) ; DWARF-NEXT: DW_AT_name [DW_FORM_strp] ( {{.*}}"input") declare void @llvm.dbg.declare(metadata, metadata, metadata) |

