1*2881696bSIgor Kudrin; RUN: llc %s -mtriple=x86_64 -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s 2f13f0505SSourabh Singh Tomar 3f13f0505SSourabh Singh Tomar; CHECK-DAG-LABEL: DW_AT_name ("negconstant") 4f13f0505SSourabh Singh Tomar; CHECK: DW_AT_const_value (-1) 5f13f0505SSourabh Singh Tomar; CHECK-DAG-LABEL: DW_AT_name ("negconstant2") 6f13f0505SSourabh Singh Tomar; CHECK: DW_AT_const_value (-2) 7f13f0505SSourabh Singh Tomar; CHECK-DAG-LABEL: DW_AT_name ("posconstant") 8f13f0505SSourabh Singh Tomar; CHECK: DW_AT_const_value (1) 9f13f0505SSourabh Singh Tomar; CHECK-DAG-LABEL: DW_AT_name ("posconstant1") 10f13f0505SSourabh Singh Tomar; CHECK: DW_AT_const_value (2) 11f13f0505SSourabh Singh Tomar 12f13f0505SSourabh Singh Tomar!llvm.dbg.cu = !{!0} 13f13f0505SSourabh Singh Tomar!llvm.module.flags = !{!13, !14, !15, !16} 14f13f0505SSourabh Singh Tomar 15f13f0505SSourabh Singh Tomar!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !3) 16f13f0505SSourabh Singh Tomar!1 = !DIFile(filename: "globalconst.c", directory: "/") 17f13f0505SSourabh Singh Tomar!2 = !{} 18f13f0505SSourabh Singh Tomar!3 = !{!4, !7, !9, !11} 19f13f0505SSourabh Singh Tomar!4 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression(DW_OP_consts, 18446744073709551615, DW_OP_stack_value)) 20f13f0505SSourabh Singh Tomar!5 = distinct !DIGlobalVariable(name: "negconstant", scope: !0, file: !1, line: 2, type: !6, isLocal: false, isDefinition: true) 21f13f0505SSourabh Singh Tomar!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 22f13f0505SSourabh Singh Tomar!7 = !DIGlobalVariableExpression(var: !8, expr: !DIExpression(DW_OP_consts, 18446744073709551614, DW_OP_stack_value)) 23f13f0505SSourabh Singh Tomar!8 = distinct !DIGlobalVariable(name: "negconstant2", scope: !0, file: !1, line: 3, type: !6, isLocal: false, isDefinition: true) 24f13f0505SSourabh Singh Tomar!9 = !DIGlobalVariableExpression(var: !10, expr: !DIExpression(DW_OP_consts, 1, DW_OP_stack_value)) 25f13f0505SSourabh Singh Tomar!10 = distinct !DIGlobalVariable(name: "posconstant", scope: !0, file: !1, line: 2, type: !6, isLocal: false, isDefinition: true) 26f13f0505SSourabh Singh Tomar!11 = !DIGlobalVariableExpression(var: !12, expr: !DIExpression(DW_OP_consts, 2, DW_OP_stack_value)) 27f13f0505SSourabh Singh Tomar!12 = distinct !DIGlobalVariable(name: "posconstant2", scope: !0, file: !1, line: 3, type: !6, isLocal: false, isDefinition: true) 28f13f0505SSourabh Singh Tomar!13 = !{i32 2, !"Dwarf Version", i32 4} 29f13f0505SSourabh Singh Tomar!14 = !{i32 2, !"Debug Info Version", i32 3} 30f13f0505SSourabh Singh Tomar!15 = !{i32 1, !"wchar_size", i32 4} 31f13f0505SSourabh Singh Tomar!16 = !{i32 7, !"PIC Level", i32 2} 32