<div dir="ltr">Hello Wolfgang,<br><br>The test still fails on the builder:<br><a href="http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/7593">http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/7593</a><br><br>Please have a look?<br><br>Thanks<br><br>Galina<br><br><br>. . . <br>********************<br>Failing Tests (3):<br>    LLVM :: CodeGen/AArch64/machine-outliner.mir<br>    LLVM :: CodeGen/ARM/pr25838.ll<br>    LLVM :: DebugInfo/X86/string-offsets-multiple-cus.ll<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 29, 2018 at 9:49 AM, Wolfgang Pieb via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: wolfgangp<br>
Date: Mon Jan 29 09:49:10 2018<br>
New Revision: 323670<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=323670&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=323670&view=rev</a><br>
Log:<br>
[DWARF] Recommitting a test reverted in r323560. Moved to x86 directory with explicit triple.<br>
ELF support is required for type units.<br>
<br>
Added:<br>
    llvm/trunk/test/DebugInfo/X86/<wbr>string-offsets-multiple-cus.ll<br>
<br>
Added: llvm/trunk/test/DebugInfo/X86/<wbr>string-offsets-multiple-cus.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/string-offsets-multiple-cus.ll?rev=323670&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/test/<wbr>DebugInfo/X86/string-offsets-<wbr>multiple-cus.ll?rev=323670&<wbr>view=auto</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/test/DebugInfo/X86/<wbr>string-offsets-multiple-cus.ll (added)<br>
+++ llvm/trunk/test/DebugInfo/X86/<wbr>string-offsets-multiple-cus.ll Mon Jan 29 09:49:10 2018<br>
@@ -0,0 +1,157 @@<br>
+; REQUIRES: object-emission<br>
+; RUN: %llc_dwarf -mtriple=x86_64-unknown-linux-<wbr>gnu -filetype=obj < %s | llvm-dwarfdump -v - | \<br>
+; RUN:    FileCheck --check-prefix=DEFAULT --check-prefix=BOTH %s<br>
+; RUN: %llc_dwarf -mtriple=x86_64-unknown-linux-<wbr>gnu -filetype=obj -generate-type-units < %s |  \<br>
+; RUN:    llvm-dwarfdump -v - | FileCheck --check-prefix=TYPEUNITS --check-prefix=BOTH %s<br>
+;<br>
+; Check that we generate the DWARF v5 string offsets section correctly when we<br>
+; have multiple compile and type units. All units share one contribution to<br>
+; the string offsets section.<br>
+;<br>
+; Constructed from the following sources with<br>
+; clang -gdwarf-5 -emit-llvm -S a.cpp<br>
+; clang -gdwarf-5 -emit-llvm -S b.cpp<br>
+; clang -gdwarf-5 -emit-llvm -S c.cpp<br>
+; llvm-link a.ll b.ll c.ll -o test.bc<br>
+; llvm-dis test.bc -o test.ll<br>
+;<br>
+; a.cpp:<br>
+; enum E1 {a, b, c};<br>
+; E1 glob1;<br>
+;<br>
+; b.cpp:<br>
+; enum E2 {d, e, f};<br>
+; E2 glob2;<br>
+;<br>
+; c.cpp:<br>
+; enum E3 {g, h, i};<br>
+; E3 glob3;<br>
+;<br>
+; Check that all 3 compile units have the correct DW_AT_str_offsets_base attributes<br>
+; with the correct offsets. Check that strings referenced by compile units 2 and 3<br>
+; are displayed correctly.<br>
+;<br>
+; CU 1<br>
+; BOTH:        .debug_info contents:<br>
+; BOTH-NOT:    .contents:<br>
+; BOTH:        DW_TAG_compile_unit<br>
+; BOTH-NOT:    {{DW_TAG|NULL}}<br>
+; BOTH:        DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF:[0-9a-f]+]])<br>
+;<br>
+; CU 2<br>
+; BOTH-NOT:    contents:<br>
+; BOTH:        DW_TAG_compile_unit<br>
+; BOTH-NOT:    {{DW_TAG|NULL}}<br>
+; BOTH:        DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])<br>
+; BOTH-NOT:    NULL<br>
+; BOTH:        DW_TAG_variable<br>
+; BOTH-NOT:    {{DW_TAG|NULL}}<br>
+; BOTH:        DW_AT_name [DW_FORM_strx1] ( indexed (00000009) string = "glob2")<br>
+;<br>
+; CU 3<br>
+; BOTH-NOT:    contents:<br>
+; BOTH:        DW_TAG_compile_unit<br>
+; BOTH-NOT:    {{DW_TAG|NULL}}<br>
+; BOTH:        DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])<br>
+; BOTH-NOT:    NULL<br>
+; BOTH:        DW_TAG_variable<br>
+; BOTH-NOT:    {{DW_TAG|NULL}}<br>
+; BOTH:        DW_AT_name [DW_FORM_strx1] ( indexed (0000000f) string = "glob3")<br>
+;<br>
+; Verify that all 3 type units have the proper DW_AT_str_offsets_base attribute.<br>
+; TYPEUNITS:      .debug_types contents:<br>
+; TYPEUNITS-NOT:  contents:<br>
+; TYPEUNITS:      DW_TAG_type_unit<br>
+; TYPEUNITS-NOT:  {{DW_TAG|NULL}}<br>
+; TYPEUNITS:      DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])<br>
+; TYPEUNITS-NOT:  NULL<br>
+; TYPEUNITS:      DW_TAG_enumerator<br>
+; TYPEUNITS-NOT:  NULL<br>
+; TYPEUNITS:      DW_TAG_enumerator<br>
+; TYPEUNITS-NOT:  {{DW_TAG|NULL}}<br>
+; TYPEUNITS:      DW_AT_name [DW_FORM_strx1] ( indexed (00000005) string = "b")<br>
+; TYPEUNITS-NOT:  contents:<br>
+; TYPEUNITS:      DW_TAG_type_unit<br>
+; TYPEUNITS-NOT:  {{DW_TAG|NULL}}<br>
+; TYPEUNITS:      DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])<br>
+; TYPEUNITS-NOT:  NULL<br>
+; TYPEUNITS:      DW_TAG_enumeration_type<br>
+; TYPEUNITS:      DW_AT_name [DW_FORM_strx1] ( indexed (0000000d) string = "E2")<br>
+; TYPEUNITS-NOT:  contents:<br>
+; TYPEUNITS:      DW_TAG_type_unit<br>
+; TYPEUNITS-NOT:  {{DW_TAG|NULL}}<br>
+; TYPEUNITS:      DW_AT_str_offsets_base [DW_FORM_sec_offset] (0x[[CU1_STROFF]])<br>
+; TYPEUNITS-NOT:  NULL<br>
+; TYPEUNITS:      DW_TAG_enumeration_type<br>
+; TYPEUNITS:      DW_AT_name [DW_FORM_strx1] ( indexed (00000013) string = "E3")<br>
+;<br>
+; Extract the offset of a string to verify that it is referenced in the string<br>
+; offsets section.<br>
+; BOTH:           .debug_str contents:<br>
+; BOTH-NOT:       contents:<br>
+; BOTH:           0x[[GLOB2OFF:[0-9a-f]+]]: "glob2"<br>
+;<br>
+; Check the .debug_str_offsets section header and make sure the referenced string<br>
+; has the correct offset.<br>
+; BOTH:           .debug_str_offsets contents:<br>
+; BOTH-NEXT:      0x00000000: Contribution size = 80, Format = DWARF32, Version = 5<br>
+; BOTH-NEXT:      0x[[CU1_STROFF]]:<br>
+; BOTH-NEXT:      {{.*:}}<br>
+; BOTH-NEXT:      {{.*:}}<br>
+; BOTH-NEXT:      {{.*:}}<br>
+; BOTH-NEXT:      {{.*:}}<br>
+; BOTH-NEXT:      {{.*:}}<br>
+; BOTH-NEXT:      {{.*:}}<br>
+; BOTH-NEXT:      {{.*:}}<br>
+; BOTH-NEXT:      {{.*:}}<br>
+; The string with index 9 should be "glob2"<br>
+; BOTH-NEXT:      {{.*:}} [[GLOB2OFF]]<br>
+;<br>
+; ModuleID = 'test.bc'<br>
+source_filename = "llvm-link"<br>
+<br>
+@glob1 = global i32 0, align 4, !dbg !0<br>
+@glob2 = global i32 0, align 4, !dbg !11<br>
+@glob3 = global i32 0, align 4, !dbg !22<br>
+<br>
+!<a href="http://llvm.dbg.cu" rel="noreferrer" target="_blank">llvm.dbg.cu</a> = !{!2, !13, !24}<br>
+!llvm.ident = !{!33, !33, !33}<br>
+!llvm.module.flags = !{!34, !35, !36}<br>
+<br>
+!0 = !DIGlobalVariableExpression(<wbr>var: !1, expr: !DIExpression())<br>
+!1 = distinct !DIGlobalVariable(name: "glob1", scope: !2, file: !3, line: 2, type: !5, isLocal: false, isDefinition: true)<br>
+!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 7.0.0 (trunk 322415)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !10)<br>
+!3 = !DIFile(filename: "a1.cpp", directory: "/home/test", checksumkind: CSK_MD5, checksum: "<wbr>2ca3eeed18355d6ebbae671eafda5a<wbr>ae")<br>
+!4 = !{!5}<br>
+!5 = distinct !DICompositeType(tag: DW_TAG_enumeration_type, name: "E1", file: !3, line: 1, size: 32, elements: !6, identifier: "_ZTS2E1")<br>
+!6 = !{!7, !8, !9}<br>
+!7 = !DIEnumerator(name: "a", value: 0)<br>
+!8 = !DIEnumerator(name: "b", value: 1)<br>
+!9 = !DIEnumerator(name: "c", value: 2)<br>
+!10 = !{!0}<br>
+!11 = !DIGlobalVariableExpression(<wbr>var: !12, expr: !DIExpression())<br>
+!12 = distinct !DIGlobalVariable(name: "glob2", scope: !13, file: !14, line: 2, type: !16, isLocal: false, isDefinition: true)<br>
+!13 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !14, producer: "clang version 7.0.0 (trunk 322415)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !15, globals: !21)<br>
+!14 = !DIFile(filename: "b.cpp", directory: "/home/test", checksumkind: CSK_MD5, checksum: "<wbr>0e254f89617ecb6c4e5473546a9943<wbr>5c")<br>
+!15 = !{!16}<br>
+!16 = distinct !DICompositeType(tag: DW_TAG_enumeration_type, name: "E2", file: !14, line: 1, size: 32, elements: !17, identifier: "_ZTS2E2")<br>
+!17 = !{!18, !19, !20}<br>
+!18 = !DIEnumerator(name: "d", value: 0)<br>
+!19 = !DIEnumerator(name: "e", value: 1)<br>
+!20 = !DIEnumerator(name: "f", value: 2)<br>
+!21 = !{!11}<br>
+!22 = !DIGlobalVariableExpression(<wbr>var: !23, expr: !DIExpression())<br>
+!23 = distinct !DIGlobalVariable(name: "glob3", scope: !24, file: !25, line: 2, type: !27, isLocal: false, isDefinition: true)<br>
+!24 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !25, producer: "clang version 7.0.0 (trunk 322415)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !26, globals: !32)<br>
+!25 = !DIFile(filename: "c.cpp", directory: "/home/test", checksumkind: CSK_MD5, checksum: "<wbr>7835aaaa683fa09d295adef0e934d3<wbr>92")<br>
+!26 = !{!27}<br>
+!27 = distinct !DICompositeType(tag: DW_TAG_enumeration_type, name: "E3", file: !25, line: 1, size: 32, elements: !28, identifier: "_ZTS2E3")<br>
+!28 = !{!29, !30, !31}<br>
+!29 = !DIEnumerator(name: "g", value: 0)<br>
+!30 = !DIEnumerator(name: "h", value: 1)<br>
+!31 = !DIEnumerator(name: "i", value: 2)<br>
+!32 = !{!22}<br>
+!33 = !{!"clang version 7.0.0 (trunk 322415)"}<br>
+!34 = !{i32 2, !"Dwarf Version", i32 5}<br>
+!35 = !{i32 2, !"Debug Info Version", i32 3}<br>
+!36 = !{i32 1, !"wchar_size", i32 4}<br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>