summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@mips.com>2018-10-08 22:10:34 +0000
committerPetar Jovanovic <petar.jovanovic@mips.com>2018-10-08 22:10:34 +0000
commite2877ad3b9a30ffdc2e7de48abdb90b9d22cab8f (patch)
treee1020c237abf79d0001638a07216a96329d646cc
parent47fd01516321d2dbe1f59b492e429ff757f5b315 (diff)
downloadbcm5719-llvm-e2877ad3b9a30ffdc2e7de48abdb90b9d22cab8f.tar.gz
bcm5719-llvm-e2877ad3b9a30ffdc2e7de48abdb90b9d22cab8f.zip
[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 llvm-svn: 343999
-rw-r--r--llvm/test/DebugInfo/Generic/debug-label-inline.ll2
-rw-r--r--llvm/test/DebugInfo/Generic/debug-label.ll4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/DebugInfo/Generic/debug-label-inline.ll b/llvm/test/DebugInfo/Generic/debug-label-inline.ll
index c121d676a5c..426ce79b435 100644
--- a/llvm/test/DebugInfo/Generic/debug-label-inline.ll
+++ b/llvm/test/DebugInfo/Generic/debug-label-inline.ll
@@ -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
diff --git a/llvm/test/DebugInfo/Generic/debug-label.ll b/llvm/test/DebugInfo/Generic/debug-label.ll
index a728ac18728..57a0e952dea 100644
--- a/llvm/test/DebugInfo/Generic/debug-label.ll
+++ b/llvm/test/DebugInfo/Generic/debug-label.ll
@@ -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"
OpenPOWER on IntegriCloud