From a3aec5a989245d470dd8c35df3d25c3c85ca4d3c Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 3 Feb 2020 18:39:36 -0800 Subject: [PATCH] DebugInfo: Check DW_OP_convert in loclists with Split DWARF --- test/DebugInfo/X86/convert-loclist.ll | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/DebugInfo/X86/convert-loclist.ll b/test/DebugInfo/X86/convert-loclist.ll index 5ef81b3423c..7764fb8ff38 100644 --- a/test/DebugInfo/X86/convert-loclist.ll +++ b/test/DebugInfo/X86/convert-loclist.ll @@ -1,6 +1,10 @@ -; RUN: llc -dwarf-version=5 -filetype=obj -O0 < %s | llvm-dwarfdump -debug-loclists - | FileCheck %s +; RUN: llc -dwarf-version=5 -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info -debug-loclists - | FileCheck %s +; RUN: llc -dwarf-version=5 -split-dwarf-file=foo.dwo -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info -debug-loclists - | FileCheck %s -; CHECK: DW_LLE_offset_pair (0x0000000000000006, 0x000000000000000c): DW_OP_consts +7, DW_OP_convert 0x27, DW_OP_stack_value +; CHECK: 0x{{0*}}[[TYPE:.*]]: DW_TAG_base_type +; CHECK-NEXT: DW_AT_name ("DW_ATE_unsigned_32") + +; CHECK: DW_LLE_offset_pair (0x0000000000000006, 0x000000000000000c): DW_OP_consts +7, DW_OP_convert 0x[[TYPE]], DW_OP_stack_value ; Function Attrs: uwtable