Skip to content

Commit 1775897

Browse files
authored
Merge pull request swiftlang#63691 from meg-gupta/fixtests
Re-enable ptrauth IRGen tests
2 parents 4b6b510 + 97c2a05 commit 1775897

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

test/IRGen/ptrauth-foreign.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// RUN: %swift -module-name test -import-objc-header %S/Inputs/ptrauth-foreign.h %s -parse-stdlib -parse-as-library -emit-ir -target arm64e-apple-ios12.0 | %FileCheck %s --check-prefix=CHECK
1+
// RUN: %swift -module-name test -import-objc-header %S/Inputs/ptrauth-foreign.h %s -parse-stdlib -parse-as-library -emit-ir -target arm64e-apple-ios12.0 -Xllvm -sil-disable-pass=OnoneSimplification | %FileCheck %s --check-prefix=CHECK
22

33
// REQUIRES: CPU=arm64e
44
// REQUIRES: OS=ios
5-
// REQUIRES: rdar105176187
65

76
sil @test0 : $() -> () {
87
bb0:

test/IRGen/ptrauth_field_fptr_import.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// RUN: %swift-frontend %s -enable-import-ptrauth-field-function-pointers -emit-ir -target arm64e-apple-ios13.0 -I %S/Inputs/ -validate-tbd-against-ir=none | %FileCheck %s
1+
// RUN: %swift-frontend %s -enable-import-ptrauth-field-function-pointers -emit-ir -target arm64e-apple-ios13.0 -I %S/Inputs/ -validate-tbd-against-ir=none -Xllvm -sil-disable-pass=OnoneSimplification | %FileCheck %s
22
// REQUIRES: CPU=arm64e
33
// REQUIRES: OS=ios
4-
// REQUIRES: rdar105176187
54

65
import PointerAuth
76

@@ -54,7 +53,7 @@ func test_field_fn_ptr_modify() {
5453
// CHECK: 12:
5554
// CHECK: [[AddressDiscriminatedSecureStruct:%.*]] = phi i8* [ [[CAST0]], %5 ]
5655
// CHECK: [[CAST1:%.*]] = bitcast i8* [[AddressDiscriminatedSecureStruct]] to %TSo32AddressDiscriminatedSecureStructV*
57-
// CHECK: %.secure_func_ptr = getelementptr inbounds %TSo32AddressDiscriminatedSecureStructV, %TSo32AddressDiscriminatedSecureStructV* %14, i32 0, i32 0
56+
// CHECK: %.secure_func_ptr = getelementptr inbounds %TSo32AddressDiscriminatedSecureStructV, %TSo32AddressDiscriminatedSecureStructV* [[CAST1]], i32 0, i32 0
5857
// CHECK: [[CAST2:%.*]] = bitcast %Ts5Int32VIetCd_Sg* %.secure_func_ptr to i64**
5958
// CHECK: [[PTR:%.*]] = load i64*, i64** [[CAST2]], align 8
6059
// CHECK: [[ADDR:%.*]] = ptrtoint %Ts5Int32VIetCd_Sg* %.secure_func_ptr to i64

0 commit comments

Comments
 (0)