@@ -41,7 +41,7 @@ public func forceSplit() async {}
41
41
42
42
// CHECK-LABEL: define swifttailcc void @"$s27move_function_dbginfo_async13letSimpleTestyyxnYalF"(%swift.context* swiftasync %0, %swift.opaque* noalias %1, %swift.type* %T)
43
43
// CHECK: entry:
44
- // CHECK: call void @llvm.dbg.addr(metadata %swift.opaque** %msg.debug , metadata ![[SIMPLE_TEST_METADATA:[0-9]+]], metadata !DIExpression(DW_OP_deref)), !dbg ![[ADDR_LOC:[0-9]+]]
44
+ // CHECK: call void @llvm.dbg.addr(metadata %swift.context* %0 , metadata ![[SIMPLE_TEST_METADATA:[0-9]+]], metadata !DIExpression(DW_OP_plus_uconst, 16, DW_OP_plus_uconst, 8, DW_OP_deref)), !dbg ![[ADDR_LOC:[0-9]+]]
45
45
// CHECK: musttail call swifttailcc void
46
46
// CHECK-NEXT: ret void
47
47
@@ -60,10 +60,8 @@ public func forceSplit() async {}
60
60
61
61
// DWARF: DW_AT_linkage_name ("$s3out13letSimpleTestyyxnYalF")
62
62
// DWARF: DW_TAG_formal_parameter
63
- // Disable this part of the test due to a different codegen bug.
64
- // XWARF-NEXT: DW_AT_location (0x{{[a-f0-9]+}}:
65
- // XWARF-NEXT: [0x{{[a-f0-9]+}}, 0x{{[a-f0-9]+}}): DW_OP_breg0 RAX+0, DW_OP_deref)
66
- // XWARF-NEXT: DW_AT_name ("msg")
63
+ // DWARF-NEXT: DW_AT_location (DW_OP_entry_value(DW_OP_reg14 R14), DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x8, DW_OP_deref)
64
+ // DWARF-NEXT: DW_AT_name ("msg")
67
65
//
68
66
// DWARF: DW_AT_linkage_name ("$s3out13letSimpleTestyyxnYalFTQ0_")
69
67
// DWARF: DW_AT_name ("letSimpleTest")
@@ -83,7 +81,7 @@ public func letSimpleTest<T>(_ msg: __owned T) async {
83
81
}
84
82
85
83
// CHECK-LABEL: define swifttailcc void @"$s27move_function_dbginfo_async13varSimpleTestyyxz_xtYalF"(%swift.context* swiftasync %0, %swift.opaque* %1, %swift.opaque* noalias %2, %swift.type* %T)
86
- // CHECK: call void @llvm.dbg.addr(metadata %swift.opaque** %msg.debug , metadata !{{[0-9]+}}, metadata !DIExpression(DW_OP_deref))
84
+ // CHECK: call void @llvm.dbg.addr(metadata %swift.context* %0 , metadata !{{[0-9]+}}, metadata !DIExpression(DW_OP_plus_uconst, 16, DW_OP_plus_uconst, 8, DW_OP_deref))
87
85
// CHECK: musttail call swifttailcc void @"$s27move_function_dbginfo_async10forceSplityyYaF"(%swift.context* swiftasync %{{[0-9]+}})
88
86
// CHECK-NEXT: ret void
89
87
// CHECK-NEXT: }
@@ -118,10 +116,8 @@ public func letSimpleTest<T>(_ msg: __owned T) async {
118
116
// DWARF: DW_AT_linkage_name ("$s3out13varSimpleTestyyxz_xtYalF")
119
117
// DWARF: DW_AT_name ("varSimpleTest")
120
118
// DWARF: DW_TAG_formal_parameter
121
- // Disable this part of the test due to an additional error.
122
- // XWARF-NEXT: DW_AT_location (0x{{[a-f0-9]+}}:
123
- // XWARF-NEXT: [0x{{[a-f0-9]+}}, 0x{{[a-f0-9]+}}): DW_OP_breg2 RCX+0, DW_OP_deref)
124
- // XWARF-NEXT: DW_AT_name ("msg")
119
+ // DWARF-NEXT: DW_AT_location (DW_OP_entry_value(DW_OP_reg14 R14), DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x8, DW_OP_deref)
120
+ // DWARF-NEXT: DW_AT_name ("msg")
125
121
//
126
122
// DWARF: DW_AT_linkage_name ("$s3out13varSimpleTestyyxz_xtYalFTQ0_")
127
123
// DWARF: DW_AT_name ("varSimpleTest")
@@ -162,8 +158,10 @@ public func letSimpleTest<T>(_ msg: __owned T) async {
162
158
// DWARF: DW_AT_linkage_name ("$s3out13varSimpleTestyyxz_xtYalFTY5_")
163
159
// DWARF: DW_AT_name ("varSimpleTest")
164
160
// DWARF: DW_TAG_formal_parameter
165
- // DWARF-NEXT: DW_AT_location (DW_OP_entry_value(DW_OP_reg14 R14), DW_OP_plus_uconst 0x[[MSG_LOC]], DW_OP_plus_uconst 0x8, DW_OP_deref)
166
- // DWARF-NEXT: DW_AT_name ("msg")
161
+ // DWARF: DW_AT_location (0x{{[a-f0-9]+}}:
162
+ // DWARF: [0x{{[a-f0-9]+}}, 0x{{[a-f0-9]+}}): DW_OP_entry_value(DW_OP_reg14 R14), DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x8, DW_OP_deref
163
+ // DWARF: [0x{{[a-f0-9]+}}, 0x{{[a-f0-9]+}}): DW_OP_breg6 RBP-88, DW_OP_deref, DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x8, DW_OP_deref)
164
+ // DWARF: DW_AT_name ("msg")
167
165
168
166
public func varSimpleTest< T> ( _ msg: inout T , _ msg2: T ) async {
169
167
await forceSplit ( )
0 commit comments