[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / llvm / test / CodeGen / X86 / dwarf-aranges-zero-size.ll
blob022f6e6faa10d84a3f9359af0d5ffbfeee0812cb
1 ; Ensures that the AsmPrinter rounds up zero-sized symbols in `.debug_aranges` to one byte.
3 ; Generated from the following Rust source:
5 ;     pub static EXAMPLE: () = ();
7 ; Compiled with:
9 ;     $ rustc --crate-type=lib --target=x86_64-unknown-linux-gnu --emit=llvm-ir -g dwarf-aranges-zero-size.rs
11 ; RUN: llc --generate-arange-section < %s | FileCheck %s
12 ; CHECK: .section .debug_aranges
13 ; CHECK: .quad _ZN23dwarf_aranges_zero_size7EXAMPLE17h8ab19f2b0c3b238dE
14 ; CHECK-NEXT: .quad 1
15 ; CHECK: .section
17 ; ModuleID = 'dwarf_aranges_zero_size.fbc28187-cgu.0'
18 source_filename = "dwarf_aranges_zero_size.fbc28187-cgu.0"
19 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
20 target triple = "x86_64-unknown-linux-gnu"
22 @_ZN23dwarf_aranges_zero_size7EXAMPLE17h8ab19f2b0c3b238dE = constant <{ [0 x i8] }> zeroinitializer, align 1, !dbg !0
23 @__rustc_debug_gdb_scripts_section__ = linkonce_odr unnamed_addr constant [34 x i8] c"\01gdb_load_rust_pretty_printers.py\00", section ".debug_gdb_scripts", align 1
25 !llvm.module.flags = !{!5, !6, !7}
26 !llvm.dbg.cu = !{!8}
28 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
29 !1 = distinct !DIGlobalVariable(name: "EXAMPLE", linkageName: "_ZN23dwarf_aranges_zero_size7EXAMPLE17h8ab19f2b0c3b238dE", scope: !2, file: !3, line: 1, type: !4, isLocal: false, isDefinition: true, align: 8)
30 !2 = !DINamespace(name: "dwarf_aranges_zero_size", scope: null)
31 !3 = !DIFile(filename: "dwarf-aranges-zero-size.rs", directory: "/Users/pcwalton/Desktop", checksumkind: CSK_MD5, checksum: "c2d51547bfaf5562b9c9061311fe4140")
32 !4 = !DIBasicType(name: "()", encoding: DW_ATE_unsigned)
33 !5 = !{i32 7, !"PIC Level", i32 2}
34 !6 = !{i32 2, !"RtLibUseGOT", i32 1}
35 !7 = !{i32 2, !"Debug Info Version", i32 3}
36 !8 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !9, producer: "clang LLVM (rustc version 1.60.0-nightly (0c292c966 2022-02-08))", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !10, globals: !11)
37 !9 = !DIFile(filename: "dwarf-aranges-zero-size.rs/@/dwarf_aranges_zero_size.fbc28187-cgu.0", directory: "/Users/pcwalton/Desktop")
38 !10 = !{}
39 !11 = !{!0}