Skip to content

Commit 0024460

Browse files
committed
Fix test/IRGen/witness-method-elimination-ir-relative.swift on arm64e
1 parent 43510bc commit 0024460

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/IRGen/witness-method-elimination-ir-relative.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

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

88
// REQUIRES: PTRSIZE=64
99

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

0 commit comments

Comments
 (0)