[llvm] 3aece79 - Adapt test to be compatible with AIX
Jake Egan via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 16 09:35:25 PST 2021
Author: Jake Egan
Date: 2021-12-16T12:35:16-05:00
New Revision: 3aece7995cb63a536a15df35ebe107d04a8acc86
URL: https://github.com/llvm/llvm-project/commit/3aece7995cb63a536a15df35ebe107d04a8acc86
DIFF: https://github.com/llvm/llvm-project/commit/3aece7995cb63a536a15df35ebe107d04a8acc86.diff
LOG: Adapt test to be compatible with AIX
This patch updates the following test, which is falling to match ASM lines on AIX for two reasons:
- `.debug_info` is mapped to `.dwinfo`, so the test fails to match `debug_info` before `DW_TAG_label` occurs
- AIX uses inline strings, so `DW_AT_NAME` format is different and does not match `DW_AT_decl_file` in the next line.
Reviewed By: shchenz
Differential Revision: https://reviews.llvm.org/D115695
Added:
Modified:
llvm/test/DebugInfo/Generic/debug-label.ll
Removed:
################################################################################
diff --git a/llvm/test/DebugInfo/Generic/debug-label.ll b/llvm/test/DebugInfo/Generic/debug-label.ll
index e45d49d588969..994d8404a4ce9 100644
--- a/llvm/test/DebugInfo/Generic/debug-label.ll
+++ b/llvm/test/DebugInfo/Generic/debug-label.ll
@@ -17,15 +17,15 @@
;
; ASM: [[TOP_LOW_PC:[.0-9a-zA-Z]+]]:{{[[:space:]].*}}DEBUG_LABEL: foo:top
; ASM: [[DONE_LOW_PC:[.0-9a-zA-Z]+]]:{{[[:space:]].*}}DEBUG_LABEL: foo:done
-; ASM-LABEL: debug_info
+; ASM-LABEL: {{debug_info|dwinfo}}
; ASM: DW_TAG_label
; ASM-NEXT: DW_AT_name
-; ASM-NEXT: 1 {{.*}} DW_AT_decl_file
+; ASM: 1 {{.*}} DW_AT_decl_file
; ASM-NEXT: 4 {{.*}} DW_AT_decl_line
; 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: 1 {{.*}} DW_AT_decl_file
; ASM-NEXT: 7 {{.*}} DW_AT_decl_line
; ASM-NEXT: [[DONE_LOW_PC]]{{.*}} DW_AT_low_pc
More information about the llvm-commits
mailing list