Skip to content

Fix test/IRGen/witness-method-elimination-ir-relative.swift on arm64e #63914

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
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
5 changes: 4 additions & 1 deletion test/IRGen/witness-method-elimination-ir-relative.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// RUN: %target-build-swift -Xfrontend -disable-objc-interop -Xfrontend -enable-llvm-wme \
// RUN: -Xfrontend -enable-relative-protocol-witness-tables \
// RUN: %s -emit-ir -o - | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
// RUN: %s -emit-ir -o - | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-%target-cpu

// REQUIRES: PTRSIZE=64

Expand Down Expand Up @@ -39,6 +39,9 @@ func test2() {
let x: TheProtocol = MyStruct()
x.func1_live()
// CHECK: [[TBL:%.*]] = phi i8**
// CHECK-arm64e: [[T0:%.*]] = ptrtoint i8** [[TBL]] to i64
// CHECK-arm64e: [[T1:%.*]] = call i64 @llvm.ptrauth.auth(i64 [[T0]], i32 2, i64 47152)
// CHECK-arm64e: [[TBL:%.*]] = inttoptr i64 [[T1]] to i8**
// CHECK: [[TBL2:%.*]] = bitcast i8** [[TBL]] to i32*
// CHECK: [[ENTRY:%.*]] = getelementptr inbounds i32, i32* [[TBL2]], i32 1
// CHECK: [[ENTRY2:%.*]] = bitcast i32* [[ENTRY]] to i8*
Expand Down