|
27 | 27 | ; RUN: | FileCheck %s --check-prefix=VERBOSE --check-prefix=CONV "--implicit-check-not={{DW_TAG|NULL}}"
|
28 | 28 |
|
29 | 29 |
|
30 |
| -; SPLITCONV: Compile Unit:{{.*}} DWO_id = 0x62f17241069b1fa3 |
| 30 | +; SPLITCONV: Compile Unit:{{.*}} DWO_id = 0x24191746f389535f |
31 | 31 | ; SPLIT: DW_TAG_skeleton_unit
|
32 | 32 |
|
33 | 33 | ; CONV: DW_TAG_compile_unit
|
|
41 | 41 | ; CONV-NEXT:DW_AT_encoding {{.*}}DW_ATE_signed)
|
42 | 42 | ; CONV-NEXT:DW_AT_byte_size {{.*}}0x04)
|
43 | 43 | ; CONV-NOT: DW_AT
|
| 44 | +; CONV: DW_TAG_base_type |
| 45 | +; CONV: DW_TAG_base_type |
44 | 46 | ; CONV: DW_TAG_subprogram
|
45 | 47 | ; CONV: DW_TAG_formal_parameter
|
46 | 48 | ; CONV: DW_TAG_variable
|
|
50 | 52 | ; VERBOSE-SAME: [[SIG32]] ->
|
51 | 53 | ; CONV-SAME: [[SIG32]]) "DW_ATE_signed_32", DW_OP_stack_value)
|
52 | 54 | ; CONV: DW_AT_name {{.*}}"y")
|
| 55 | +; CONV: DW_TAG_variable |
53 | 56 | ; CONV: NULL
|
54 | 57 | ; CONV: DW_TAG_base_type
|
55 | 58 | ; CONV: DW_AT_name {{.*}}"signed char")
|
56 | 59 | ; CONV: DW_TAG_base_type
|
57 | 60 | ; CONV: DW_AT_name {{.*}}"int")
|
| 61 | +; CONV: DW_TAG_base_type |
| 62 | +; CONV: DW_AT_name {{.*}}"unsigned long long") |
58 | 63 | ; CONV: NULL
|
59 | 64 |
|
60 | 65 | ; NOCONV: DW_TAG_compile_unit
|
|
64 | 69 | ; NOCONV: DW_AT_location (
|
65 | 70 | ; NOCONV: {{.*}}, 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)
|
66 | 71 | ; NOCONV: DW_AT_name ("y")
|
| 72 | +; NOCONV: DW_TAG_variable |
| 73 | +; NOCONV: DW_AT_location ( |
| 74 | +; NOCONV: DW_OP_constu 0x40, DW_OP_lit0, DW_OP_plus, DW_OP_lit1, DW_OP_constu 0x40, DW_OP_shl, DW_OP_lit1, DW_OP_minus, DW_OP_and, DW_OP_stack_value) |
| 75 | +; NOCONV: DW_AT_name ("z") |
67 | 76 | ; NOCONV: NULL
|
68 | 77 | ; NOCONV: DW_TAG_base_type
|
69 | 78 | ; NOCONV: DW_AT_name ("signed char")
|
70 | 79 | ; NOCONV: DW_TAG_base_type
|
71 | 80 | ; NOCONV: DW_AT_name ("int")
|
| 81 | +; NOCONV: DW_TAG_base_type |
| 82 | +; NOCONV: DW_AT_name ("unsigned long long") |
72 | 83 | ; NOCONV: NULL
|
73 | 84 |
|
74 | 85 |
|
|
81 | 92 | ;; will not attempt to eliminate. At the moment, only "convert" ops are folded.
|
82 | 93 | ;; If you have to change the expression, the expected DWO_id also changes.
|
83 | 94 | call void @llvm.dbg.value(metadata i8 32, metadata !13, metadata !DIExpression(DW_OP_lit0, DW_OP_plus, DW_OP_LLVM_convert, 8, DW_ATE_signed, DW_OP_LLVM_convert, 32, DW_ATE_signed, DW_OP_stack_value)), !dbg !15
|
| 95 | + call void @llvm.dbg.value(metadata i8 64, metadata !17, metadata !DIExpression(DW_OP_lit0, DW_OP_plus, DW_OP_LLVM_convert, 64, DW_ATE_unsigned, DW_OP_LLVM_convert, 128, DW_ATE_unsigned, DW_OP_LLVM_convert, 64, DW_ATE_unsigned, DW_OP_stack_value)), !dbg !15 |
84 | 96 | ret i8 %x, !dbg !16
|
85 | 97 | }
|
86 | 98 |
|
@@ -111,3 +123,5 @@ declare void @llvm.dbg.value(metadata, metadata, metadata)
|
111 | 123 | !14 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
112 | 124 | !15 = !DILocation(line: 3, column: 14, scope: !7)
|
113 | 125 | !16 = !DILocation(line: 4, column: 3, scope: !7)
|
| 126 | +!17 = !DILocalVariable(name: "z", scope: !7, file: !1, line: 3, type: !18) |
| 127 | +!18 = !DIBasicType(name: "unsigned long long", size: 64, encoding: DW_ATE_unsigned) |
0 commit comments