[llvm] r343999 - [DebugInfo] Fix debug information label tests

Petar Jovanovic via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 8 15:10:34 PDT 2018


Author: petarj
Date: Mon Oct  8 15:10:34 2018
New Revision: 343999

URL: http://llvm.org/viewvc/llvm-project?rev=343999&view=rev
Log:
[DebugInfo] Fix debug information label tests

Remove the space in the asm check so that the expression is more general
and can also capture MIPS labels which can be surrounded by braces, e.g.:

.4byte        ($tmp1)                 # DW_AT_low_pc

Also change optimization level to O0 because the DW_TAG_label does not
appear on MIPS when -O2 is used.

Patch by Milos Stojanovic.

Differential Revision: https://reviews.llvm.org/D52901

Modified:
    llvm/trunk/test/DebugInfo/Generic/debug-label-inline.ll
    llvm/trunk/test/DebugInfo/Generic/debug-label.ll

Modified: llvm/trunk/test/DebugInfo/Generic/debug-label-inline.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Generic/debug-label-inline.ll?rev=343999&r1=343998&r2=343999&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/debug-label-inline.ll (original)
+++ llvm/trunk/test/DebugInfo/Generic/debug-label-inline.ll Mon Oct  8 15:10:34 2018
@@ -1,4 +1,4 @@
-; RUN: llc -O2 -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
+; RUN: llc -O0 -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s
 ;
 ; CHECK: .debug_info contents:
 ; CHECK: [[LABEL_ORIGIN:0x[0-9a-zA-Z]+]]:{{ *}}DW_TAG_label

Modified: llvm/trunk/test/DebugInfo/Generic/debug-label.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Generic/debug-label.ll?rev=343999&r1=343998&r2=343999&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/debug-label.ll (original)
+++ llvm/trunk/test/DebugInfo/Generic/debug-label.ll Mon Oct  8 15:10:34 2018
@@ -22,12 +22,12 @@
 ; ASM-NEXT: DW_AT_name
 ; ASM-NEXT: 1 {{.*}} DW_AT_decl_file
 ; ASM-NEXT: 4 {{.*}} DW_AT_decl_line
-; ASM-NEXT: [[TOP_LOW_PC]] {{.*}} DW_AT_low_pc
+; ASM-NEXT: [[TOP_LOW_PC]]{{.*}} DW_AT_low_pc
 ; ASM: DW_TAG_label
 ; ASM-NEXT: DW_AT_name
 ; ASM-NEXT: 1 {{.*}} DW_AT_decl_file
 ; ASM-NEXT: 7 {{.*}} DW_AT_decl_line
-; ASM-NEXT: [[DONE_LOW_PC]] {{.*}} DW_AT_low_pc
+; ASM-NEXT: [[DONE_LOW_PC]]{{.*}} DW_AT_low_pc
 
 source_filename = "debug-label.c"
 




More information about the llvm-commits mailing list