Skip to content

Commit b55651f

Browse files
authored
Take into account pauth address discrimination on arm64e in test matcher (#75707)
Fixes #75697
1 parent 0ccbc7b commit b55651f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/IRGen/yield_result.sil

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -emit-irgen %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize -DINT=i%target-ptrsize
1+
// RUN: %target-swift-frontend -emit-irgen %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-cpu --check-prefix=CHECK-%target-ptrsize -DINT=i%target-ptrsize
22

33
import Builtin
44

@@ -105,6 +105,9 @@ bb0(%outt : $*T, %t : $*T):
105105
// CHECK:[[RESUME_BB]]:
106106
// CHECK: [[VW_PTR:%.*]] = getelementptr inbounds ptr, ptr [[TYPE]], [[INT]] -1
107107
// CHECK: [[VW:%.*]] = load ptr, ptr [[VW_PTR]]
108+
// CHECK-arm64e-NEXT: ptrtoint ptr [[VW_PTR]] to i64
109+
// CHECK-arm64e-NEXT: call i64 @llvm.ptrauth.blend
110+
// CHECK-arm64e: [[VW:%.*]] = inttoptr i64 {{%.*}} to ptr
108111
// CHECK: [[ASSIGN_PTR:%.*]] = getelementptr inbounds ptr, ptr [[VW]], i32 3
109112
// CHECK: [[ASSIGN:%.*]] = load ptr, ptr [[ASSIGN_PTR]]
110113
// CHECK: call ptr [[ASSIGN]](ptr [[INDIRECT_RET]], ptr [[ARG]], ptr [[TYPE]]) #2

0 commit comments

Comments
 (0)