[llvm] r356460 - [DebugInfo] Move test files added in r356451

Markus Lavin via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 08:15:28 PDT 2019


Author: markus
Date: Tue Mar 19 08:15:28 2019
New Revision: 356460

URL: http://llvm.org/viewvc/llvm-project?rev=356460&view=rev
Log:
[DebugInfo] Move test files added in r356451

Moved the X86 dependant .ll tests added in r356451 from
test/DebugInfo/Generic to test/DebugInfo/X86.

Added:
    llvm/trunk/test/DebugInfo/X86/convert-debugloc.ll
      - copied, changed from r356456, llvm/trunk/test/DebugInfo/Generic/convert-debugloc.ll
    llvm/trunk/test/DebugInfo/X86/convert-inlined.ll
      - copied, changed from r356456, llvm/trunk/test/DebugInfo/Generic/convert-inlined.ll
    llvm/trunk/test/DebugInfo/X86/convert-linked.ll
      - copied, changed from r356456, llvm/trunk/test/DebugInfo/Generic/convert-linked.ll
Removed:
    llvm/trunk/test/DebugInfo/Generic/convert-debugloc.ll
    llvm/trunk/test/DebugInfo/Generic/convert-inlined.ll
    llvm/trunk/test/DebugInfo/Generic/convert-linked.ll

Removed: llvm/trunk/test/DebugInfo/Generic/convert-debugloc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Generic/convert-debugloc.ll?rev=356459&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/convert-debugloc.ll (original)
+++ llvm/trunk/test/DebugInfo/Generic/convert-debugloc.ll (removed)
@@ -1,164 +0,0 @@
-; RUN: llc -dwarf-version=5 -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s --match-full-lines --check-prefix=DW5-CHECK
-; RUN: llc -dwarf-version=4 -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s --match-full-lines --check-prefix=DW4-CHECK
-
-; DW5-CHECK: .debug_info contents:
-; DW5-CHECK-NEXT: 0x00000000: Compile Unit: length = 0x0000005c version = 0x0005 unit_type = DW_UT_compile abbr_offset = 0x0000 addr_size = 0x08 (next unit at 0x00000060)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000000c: DW_TAG_compile_unit
-; DW5-CHECK-NEXT:               DW_AT_producer	("clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)")
-; DW5-CHECK-NEXT:               DW_AT_language	(DW_LANG_C99)
-; DW5-CHECK-NEXT:               DW_AT_name	("dbg.c")
-; DW5-CHECK-NEXT:               DW_AT_str_offsets_base	(0x00000008)
-; DW5-CHECK-NEXT:               DW_AT_stmt_list	(0x00000000)
-; DW5-CHECK-NEXT:               DW_AT_comp_dir {{.*}}
-; DW5-CHECK-NEXT:               DW_AT_addr_base	(0x00000008)
-; DW5-CHECK-NEXT:               DW_AT_low_pc	(0x0000000000000000)
-; DW5-CHECK-NEXT:               DW_AT_high_pc	(0x0000000000000007)
-; DW5-CHECK-NEXT:               DW_AT_loclists_base	(0x0000000c)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x00000027:   DW_TAG_base_type
-; DW5-CHECK-NEXT:                 DW_AT_name	("DW_ATE_signed_8")
-; DW5-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed)
-; DW5-CHECK-NEXT:                 DW_AT_byte_size	(0x01)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000002b:   DW_TAG_base_type
-; DW5-CHECK-NEXT:                 DW_AT_name	("DW_ATE_signed_32")
-; DW5-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed)
-; DW5-CHECK-NEXT:                 DW_AT_byte_size	(0x04)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000002f:   DW_TAG_subprogram
-; DW5-CHECK-NEXT:                 DW_AT_low_pc	(0x0000000000000000)
-; DW5-CHECK-NEXT:                 DW_AT_high_pc	(0x0000000000000007)
-; DW5-CHECK-NEXT:                 DW_AT_frame_base	(DW_OP_reg7 RSP)
-; DW5-CHECK-NEXT:                 DW_AT_name	("foo")
-; DW5-CHECK-NEXT:                 DW_AT_decl_file {{.*}}
-; DW5-CHECK-NEXT:                 DW_AT_decl_line	(1)
-; DW5-CHECK-NEXT:                 DW_AT_prototyped	(true)
-; DW5-CHECK-NEXT:                 DW_AT_type	(0x00000057 "signed char")
-; DW5-CHECK-NEXT:                 DW_AT_external	(true)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000003e:     DW_TAG_formal_parameter
-; DW5-CHECK-NEXT:                   DW_AT_location	(0x0000000c
-; DW5-CHECK-NEXT:                      [0x0000000000000003, 0x0000000000000006): DW_OP_reg0 RAX)
-; DW5-CHECK-NEXT:                   DW_AT_name	("x")
-; DW5-CHECK-NEXT:                   DW_AT_decl_file {{.*}}
-; DW5-CHECK-NEXT:                   DW_AT_decl_line	(1)
-; DW5-CHECK-NEXT:                   DW_AT_type	(0x00000057 "signed char")
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000004a:     DW_TAG_variable
-; DW5-CHECK-NEXT:                   DW_AT_location	(0x00000012
-; DW5-CHECK-NEXT:                      [0x0000000000000003, 0x0000000000000006): DW_OP_breg0 RAX+0, DW_OP_constu 0xff, DW_OP_and, DW_OP_convert (0x00000027) "DW_ATE_signed_8", DW_OP_convert (0x0000002b) "DW_ATE_signed_32", DW_OP_stack_value)
-; DW5-CHECK-NEXT:                   DW_AT_name	("y")
-; DW5-CHECK-NEXT:                   DW_AT_decl_file {{.*}}
-; DW5-CHECK-NEXT:                   DW_AT_decl_line	(3)
-; DW5-CHECK-NEXT:                   DW_AT_type	(0x0000005b "int")
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x00000056:     NULL
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x00000057:   DW_TAG_base_type
-; DW5-CHECK-NEXT:                 DW_AT_name	("signed char")
-; DW5-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed_char)
-; DW5-CHECK-NEXT:                 DW_AT_byte_size	(0x01)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000005b:   DW_TAG_base_type
-; DW5-CHECK-NEXT:                 DW_AT_name	("int")
-; DW5-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed)
-; DW5-CHECK-NEXT:                 DW_AT_byte_size	(0x04)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000005f:   NULL
-
-
-; DW4-CHECK: .debug_info contents:
-; DW4-CHECK-NEXT: 0x00000000: Compile Unit: length = 0x0000006d version = 0x0004 abbr_offset = 0x0000 addr_size = 0x08 (next unit at 0x00000071)
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x0000000b: DW_TAG_compile_unit
-; DW4-CHECK-NEXT:               DW_AT_producer	("clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)")
-; DW4-CHECK-NEXT:               DW_AT_language	(DW_LANG_C99)
-; DW4-CHECK-NEXT:               DW_AT_name	("dbg.c")
-; DW4-CHECK-NEXT:               DW_AT_stmt_list	(0x00000000)
-; DW4-CHECK-NEXT:               DW_AT_comp_dir {{.*}}
-; DW4-CHECK-NEXT:               DW_AT_low_pc	(0x0000000000000000)
-; DW4-CHECK-NEXT:               DW_AT_high_pc	(0x0000000000000007)
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x0000002a:   DW_TAG_subprogram
-; DW4-CHECK-NEXT:                 DW_AT_low_pc	(0x0000000000000000)
-; DW4-CHECK-NEXT:                 DW_AT_high_pc	(0x0000000000000007)
-; DW4-CHECK-NEXT:                 DW_AT_frame_base	(DW_OP_reg7 RSP)
-; DW4-CHECK-NEXT:                 DW_AT_name	("foo")
-; DW4-CHECK-NEXT:                 DW_AT_decl_file {{.*}}
-; DW4-CHECK-NEXT:                 DW_AT_decl_line	(1)
-; DW4-CHECK-NEXT:                 DW_AT_prototyped	(true)
-; DW4-CHECK-NEXT:                 DW_AT_type	(0x00000062 "signed char")
-; DW4-CHECK-NEXT:                 DW_AT_external	(true)
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x00000043:     DW_TAG_formal_parameter
-; DW4-CHECK-NEXT:                   DW_AT_location	(0x00000000
-; DW4-CHECK-NEXT:                      [0x0000000000000003,  0x0000000000000006): DW_OP_reg0 RAX)
-; DW4-CHECK-NEXT:                   DW_AT_name	("x")
-; DW4-CHECK-NEXT:                   DW_AT_decl_file {{.*}}
-; DW4-CHECK-NEXT:                   DW_AT_decl_line	(1)
-; DW4-CHECK-NEXT:                   DW_AT_type	(0x00000062 "signed char")
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x00000052:     DW_TAG_variable
-; DW4-CHECK-NEXT:                   DW_AT_location	(0x00000023
-; DW4-CHECK-NEXT:                      [0x0000000000000003,  0x0000000000000006): DW_OP_breg0 RAX+0, DW_OP_constu 0xff, DW_OP_and, DW_OP_dup, DW_OP_constu 0x7, DW_OP_shr, DW_OP_lit0, DW_OP_not, DW_OP_mul, DW_OP_constu 0x8, DW_OP_shl, DW_OP_or, DW_OP_stack_value)
-; DW4-CHECK-NEXT:                   DW_AT_name	("y")
-; DW4-CHECK-NEXT:                   DW_AT_decl_file {{.*}}
-; DW4-CHECK-NEXT:                   DW_AT_decl_line	(3)
-; DW4-CHECK-NEXT:                   DW_AT_type	(0x00000069 "int")
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x00000061:     NULL
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x00000062:   DW_TAG_base_type
-; DW4-CHECK-NEXT:                 DW_AT_name	("signed char")
-; DW4-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed_char)
-; DW4-CHECK-NEXT:                 DW_AT_byte_size	(0x01)
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x00000069:   DW_TAG_base_type
-; DW4-CHECK-NEXT:                 DW_AT_name	("int")
-; DW4-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed)
-; DW4-CHECK-NEXT:                 DW_AT_byte_size	(0x04)
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x00000070:   NULL
-
-
-; ModuleID = 'dbg.ll'
-source_filename = "dbg.c"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-; Function Attrs: noinline nounwind uwtable
-define dso_local signext i8 @foo(i8 signext %x) !dbg !7 {
-entry:
-  call void @llvm.dbg.value(metadata i8 %x, metadata !11, metadata !DIExpression()), !dbg !12
-  call void @llvm.dbg.value(metadata i8 %x, metadata !13, metadata !DIExpression(DW_OP_LLVM_convert, 8, DW_ATE_signed, DW_OP_LLVM_convert, 32, DW_ATE_signed, DW_OP_stack_value)), !dbg !15
-  ret i8 %x, !dbg !16
-}
-
-; Function Attrs: nounwind readnone speculatable
-declare void @llvm.dbg.declare(metadata, metadata, metadata)
-
-; Function Attrs: nounwind readnone speculatable
-declare void @llvm.dbg.value(metadata, metadata, metadata)
-
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!3, !4, !5}
-!llvm.ident = !{!6}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
-!1 = !DIFile(filename: "dbg.c", directory: "/tmp", checksumkind: CSK_MD5, checksum: "2a034da6937f5b9cf6dd2d89127f57fd")
-!2 = !{}
-!3 = !{i32 2, !"Dwarf Version", i32 5}
-!4 = !{i32 2, !"Debug Info Version", i32 3}
-!5 = !{i32 1, !"wchar_size", i32 4}
-!6 = !{!"clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)"}
-!7 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !8, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
-!8 = !DISubroutineType(types: !9)
-!9 = !{!10, !10}
-!10 = !DIBasicType(name: "signed char", size: 8, encoding: DW_ATE_signed_char)
-!11 = !DILocalVariable(name: "x", arg: 1, scope: !7, file: !1, line: 1, type: !10)
-!12 = !DILocation(line: 1, column: 29, scope: !7)
-!13 = !DILocalVariable(name: "y", scope: !7, file: !1, line: 3, type: !14)
-!14 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
-!15 = !DILocation(line: 3, column: 14, scope: !7)
-!16 = !DILocation(line: 4, column: 3, scope: !7)

Removed: llvm/trunk/test/DebugInfo/Generic/convert-inlined.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Generic/convert-inlined.ll?rev=356459&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/convert-inlined.ll (original)
+++ llvm/trunk/test/DebugInfo/Generic/convert-inlined.ll (removed)
@@ -1,87 +0,0 @@
-; RUN: llc -dwarf-version=5 -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s --match-full-lines --check-prefix=DW5-CHECK
-; RUN: llc -dwarf-version=4 -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s --match-full-lines --check-prefix=DW4-CHECK
-
-; DW5-CHECK: .debug_info contents:
-; DW5-CHECK-NEXT: 0x00000000: Compile Unit: length = 0x0000003e version = 0x0005 unit_type = DW_UT_compile abbr_offset = 0x0000 addr_size = 0x08 (next unit at 0x00000042)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000000c: DW_TAG_compile_unit
-; DW5-CHECK-NEXT:               DW_AT_producer	("clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)")
-; DW5-CHECK-NEXT:               DW_AT_language	(DW_LANG_C99)
-; DW5-CHECK-NEXT:               DW_AT_name	("dbg.c")
-; DW5-CHECK-NEXT:               DW_AT_str_offsets_base	(0x00000008)
-; DW5-CHECK-NEXT:               DW_AT_stmt_list	(0x00000000)
-; DW5-CHECK-NEXT:               DW_AT_comp_dir {{.*}}
-; DW5-CHECK-NEXT:               DW_AT_addr_base	(0x00000008)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000001e:   DW_TAG_base_type
-; DW5-CHECK-NEXT:                 DW_AT_name	("DW_ATE_signed_8")
-; DW5-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed)
-; DW5-CHECK-NEXT:                 DW_AT_byte_size	(0x01)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x00000022:   DW_TAG_base_type
-; DW5-CHECK-NEXT:                 DW_AT_name	("DW_ATE_signed_32")
-; DW5-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed)
-; DW5-CHECK-NEXT:                 DW_AT_byte_size	(0x04)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x00000026:   DW_TAG_variable
-; DW5-CHECK-NEXT:                 DW_AT_name	("global")
-; DW5-CHECK-NEXT:                 DW_AT_type	(0x0000003d "int")
-; DW5-CHECK-NEXT:                 DW_AT_external	(true)
-; DW5-CHECK-NEXT:                 DW_AT_decl_file {{.*}}
-; DW5-CHECK-NEXT:                 DW_AT_decl_line	(1)
-; DW5-CHECK-NEXT:                 DW_AT_location	(DW_OP_addrx 0x0, DW_OP_deref, DW_OP_convert (0x0000001e) "DW_ATE_signed_8", DW_OP_convert (0x00000022) "DW_ATE_signed_32", DW_OP_stack_value)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x0000003d:   DW_TAG_base_type
-; DW5-CHECK-NEXT:                 DW_AT_name	("int")
-; DW5-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed)
-; DW5-CHECK-NEXT:                 DW_AT_byte_size	(0x04)
-; DW5-CHECK-EMPTY:
-; DW5-CHECK-NEXT: 0x00000041:   NULL
-
-
-; DW4-CHECK: .debug_info contents:
-; DW4-CHECK-NEXT: 0x00000000: Compile Unit: length = 0x00000044 version = 0x0004 abbr_offset = 0x0000 addr_size = 0x08 (next unit at 0x00000048)
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x0000000b: DW_TAG_compile_unit
-; DW4-CHECK-NEXT:               DW_AT_producer	("clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)")
-; DW4-CHECK-NEXT:               DW_AT_language	(DW_LANG_C99)
-; DW4-CHECK-NEXT:               DW_AT_name	("dbg.c")
-; DW4-CHECK-NEXT:               DW_AT_stmt_list	(0x00000000)
-; DW4-CHECK-NEXT:               DW_AT_comp_dir {{.*}}
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x0000001e:   DW_TAG_variable
-; DW4-CHECK-NEXT:                 DW_AT_name	("global")
-; DW4-CHECK-NEXT:                 DW_AT_type	(0x00000040 "int")
-; DW4-CHECK-NEXT:                 DW_AT_external	(true)
-; DW4-CHECK-NEXT:                 DW_AT_decl_file {{.*}}
-; DW4-CHECK-NEXT:                 DW_AT_decl_line	(1)
-; DW4-CHECK-NEXT:                 DW_AT_location	(DW_OP_addr 0x0, DW_OP_deref, DW_OP_dup, DW_OP_constu 0x7, DW_OP_shr, DW_OP_lit0, DW_OP_not, DW_OP_mul, DW_OP_constu 0x8, DW_OP_shl, DW_OP_or, DW_OP_stack_value)
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x00000040:   DW_TAG_base_type
-; DW4-CHECK-NEXT:                 DW_AT_name	("int")
-; DW4-CHECK-NEXT:                 DW_AT_encoding	(DW_ATE_signed)
-; DW4-CHECK-NEXT:                 DW_AT_byte_size	(0x04)
-; DW4-CHECK-EMPTY:
-; DW4-CHECK-NEXT: 0x00000047:   NULL
-
-source_filename = "dbg.c"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
- at global = dso_local global i32 255, align 4, !dbg !0
-
-!llvm.dbg.cu = !{!2}
-!llvm.module.flags = !{!7, !8, !9}
-!llvm.ident = !{!10}
-
-!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression(DW_OP_deref, DW_OP_LLVM_convert, 8, DW_ATE_signed, DW_OP_LLVM_convert, 32, DW_ATE_signed, DW_OP_stack_value))
-!1 = distinct !DIGlobalVariable(name: "global", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
-!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, nameTableKind: None)
-!3 = !DIFile(filename: "dbg.c", directory: "/tmp", checksumkind: CSK_MD5, checksum: "7c731722dd7304ccb8e366ae80269b82")
-!4 = !{}
-!5 = !{!0}
-!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
-!7 = !{i32 2, !"Dwarf Version", i32 5}
-!8 = !{i32 2, !"Debug Info Version", i32 3}
-!9 = !{i32 1, !"wchar_size", i32 4}
-!10 = !{!"clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)"}

Removed: llvm/trunk/test/DebugInfo/Generic/convert-linked.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Generic/convert-linked.ll?rev=356459&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/convert-linked.ll (original)
+++ llvm/trunk/test/DebugInfo/Generic/convert-linked.ll (removed)
@@ -1,72 +0,0 @@
-; RUN: llc -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s
-
-; CHECK: DW_TAG_compile_unit
-; CHECK: [[CU0BT0:0x[0-9a-f]+]]: DW_TAG_base_type
-; CHECK-NEXT: DW_ATE_signed_8
-; CHECK: [[CU0BT1:0x[0-9a-f]+]]: DW_TAG_base_type
-; CHECK-NEXT: DW_ATE_signed_32
-; CHECK: DW_TAG_variable
-; CHECK: DW_OP_convert ([[CU0BT0]]) "DW_ATE_signed_8", DW_OP_convert ([[CU0BT1]]) "DW_ATE_signed_32"
-
-; CHECK: DW_TAG_compile_unit
-; CHECK: [[CU1BT0:0x[0-9a-f]+]]: DW_TAG_base_type
-; CHECK-NEXT: DW_ATE_signed_8
-; CHECK: [[CU1BT1:0x[0-9a-f]+]]: DW_TAG_base_type
-; CHECK-NEXT: DW_ATE_signed_16
-; CHECK: DW_TAG_variable
-; CHECK: DW_OP_convert ([[CU1BT0]]) "DW_ATE_signed_8", DW_OP_convert ([[CU1BT1]]) "DW_ATE_signed_16"
-
-; ModuleID = 'llvm-link'
-source_filename = "llvm-link"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-define dso_local signext i8 @foo(i8 signext %x) !dbg !9 {
-entry:
-  call void @llvm.dbg.value(metadata i8 %x, metadata !13, metadata !DIExpression()), !dbg !14
-  call void @llvm.dbg.value(metadata i8 %x, metadata !15, metadata !DIExpression(DW_OP_LLVM_convert, 8, DW_ATE_signed, DW_OP_LLVM_convert, 32, DW_ATE_signed, DW_OP_stack_value)), !dbg !17
-  ret i8 %x, !dbg !18
-}
-
-define dso_local signext i8 @bar(i8 signext %x) !dbg !19 {
-entry:
-  call void @llvm.dbg.value(metadata i8 %x, metadata !20, metadata !DIExpression()), !dbg !21
-  call void @llvm.dbg.value(metadata i8 %x, metadata !22, metadata !DIExpression(DW_OP_LLVM_convert, 8, DW_ATE_signed, DW_OP_LLVM_convert, 16, DW_ATE_signed, DW_OP_stack_value)), !dbg !24
-  ret i8 %x, !dbg !25
-}
-
-; Function Attrs: nounwind readnone speculatable
-declare void @llvm.dbg.value(metadata, metadata, metadata) #1
-
-attributes #1 = { nounwind readnone speculatable }
-
-!llvm.dbg.cu = !{!0, !3}
-!llvm.ident = !{!5, !5}
-!llvm.module.flags = !{!6, !7, !8}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 9.0.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
-!1 = !DIFile(filename: "dbg-foo.c", directory: "/tmp", checksumkind: CSK_MD5, checksum: "b35f80a032deb2a30bc187d564b5a775")
-!2 = !{}
-!3 = distinct !DICompileUnit(language: DW_LANG_C99, file: !4, producer: "clang version 9.0.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
-!4 = !DIFile(filename: "dbg-bar.c", directory: "/tmp", checksumkind: CSK_MD5, checksum: "9836bb594260d883960455e7d8bc51ea")
-!5 = !{!"clang version 9.0.0 "}
-!6 = !{i32 2, !"Dwarf Version", i32 5}
-!7 = !{i32 2, !"Debug Info Version", i32 3}
-!8 = !{i32 1, !"wchar_size", i32 4}
-!9 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 7, type: !10, scopeLine: 8, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
-!10 = !DISubroutineType(types: !11)
-!11 = !{!12, !12}
-!12 = !DIBasicType(name: "signed char", size: 8, encoding: DW_ATE_signed_char)
-!13 = !DILocalVariable(name: "x", arg: 1, scope: !9, file: !1, line: 7, type: !12)
-!14 = !DILocation(line: 7, column: 29, scope: !9)
-!15 = !DILocalVariable(name: "y", scope: !9, file: !1, line: 9, type: !16)
-!16 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
-!17 = !DILocation(line: 9, column: 14, scope: !9)
-!18 = !DILocation(line: 10, column: 3, scope: !9)
-!19 = distinct !DISubprogram(name: "bar", scope: !4, file: !4, line: 1, type: !10, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !3, retainedNodes: !2)
-!20 = !DILocalVariable(name: "x", arg: 1, scope: !19, file: !4, line: 1, type: !12)
-!21 = !DILocation(line: 1, column: 29, scope: !19)
-!22 = !DILocalVariable(name: "z", scope: !19, file: !4, line: 3, type: !23)
-!23 = !DIBasicType(name: "short", size: 16, encoding: DW_ATE_signed)
-!24 = !DILocation(line: 3, column: 16, scope: !19)
-!25 = !DILocation(line: 4, column: 3, scope: !19)

Copied: llvm/trunk/test/DebugInfo/X86/convert-debugloc.ll (from r356456, llvm/trunk/test/DebugInfo/Generic/convert-debugloc.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/convert-debugloc.ll?p2=llvm/trunk/test/DebugInfo/X86/convert-debugloc.ll&p1=llvm/trunk/test/DebugInfo/Generic/convert-debugloc.ll&r1=356456&r2=356460&rev=356460&view=diff
==============================================================================
    (empty)

Copied: llvm/trunk/test/DebugInfo/X86/convert-inlined.ll (from r356456, llvm/trunk/test/DebugInfo/Generic/convert-inlined.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/convert-inlined.ll?p2=llvm/trunk/test/DebugInfo/X86/convert-inlined.ll&p1=llvm/trunk/test/DebugInfo/Generic/convert-inlined.ll&r1=356456&r2=356460&rev=356460&view=diff
==============================================================================
    (empty)

Copied: llvm/trunk/test/DebugInfo/X86/convert-linked.ll (from r356456, llvm/trunk/test/DebugInfo/Generic/convert-linked.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/convert-linked.ll?p2=llvm/trunk/test/DebugInfo/X86/convert-linked.ll&p1=llvm/trunk/test/DebugInfo/Generic/convert-linked.ll&r1=356456&r2=356460&rev=356460&view=diff
==============================================================================
    (empty)




More information about the llvm-commits mailing list