File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ bb0(%0 : @owned $C?):
50
50
// arm64-NEXT: [[T3:%.*]] = ptrtoint i8* [[T2]] to i64
51
51
// arm64-NEXT: ret i64 [[T3]]
52
52
53
+ // aarch64: define{{( dllexport| protected)?}} swiftcc i64 @bar(i64)
54
+ // aarch64: [[T0:%.*]] = call swiftcc i64 @foo(i64 %0)
55
+ // aarch64-NEXT: call void asm sideeffect "mov
56
+ // aarch64-NEXT: [[T1:%.*]] = inttoptr i64 [[T0]] to i8*
57
+ // aarch64-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])
58
+ // aarch64-NEXT: [[T3:%.*]] = ptrtoint i8* [[T2]] to i64
59
+ // aarch64-NEXT: ret i64 [[T3]]
60
+
53
61
// i386: define{{( dllexport| protected)?}} swiftcc i32 @bar(i32)
54
62
// i386: [[T0:%.*]] = call swiftcc i32 @foo(i32 %0)
55
63
// i386-NEXT: [[T1:%.*]] = inttoptr i32 [[T0]] to i8*
@@ -80,3 +88,4 @@ bb0(%0 : @owned $C?):
80
88
// armv7k-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])
81
89
// armv7k-NEXT: [[T3:%.*]] = ptrtoint i8* [[T2]] to i32
82
90
// armv7k-NEXT: ret i32 [[T3]]
91
+
You can’t perform that action at this time.
0 commit comments