Skip to content

[android] Duplicate some arm64 checks for aarch64. #19478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions test/IRGen/autorelease.sil
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ bb0(%0 : @owned $C?):
// arm64-NEXT: [[T3:%.*]] = ptrtoint i8* [[T2]] to i64
// arm64-NEXT: ret i64 [[T3]]

// aarch64: define{{( dllexport| protected)?}} swiftcc i64 @bar(i64)
// aarch64: [[T0:%.*]] = call swiftcc i64 @foo(i64 %0)
// aarch64-NEXT: call void asm sideeffect "mov
// aarch64-NEXT: [[T1:%.*]] = inttoptr i64 [[T0]] to i8*
// aarch64-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])
// aarch64-NEXT: [[T3:%.*]] = ptrtoint i8* [[T2]] to i64
// aarch64-NEXT: ret i64 [[T3]]

// i386: define{{( dllexport| protected)?}} swiftcc i32 @bar(i32)
// i386: [[T0:%.*]] = call swiftcc i32 @foo(i32 %0)
// i386-NEXT: [[T1:%.*]] = inttoptr i32 [[T0]] to i8*
Expand Down Expand Up @@ -80,3 +88,4 @@ bb0(%0 : @owned $C?):
// armv7k-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])
// armv7k-NEXT: [[T3:%.*]] = ptrtoint i8* [[T2]] to i32
// armv7k-NEXT: ret i32 [[T3]]