Adjust test/IRGen/ptrauth-foreign.sil and test/IRGen/ptrauth-class-methods.sil for changed layout of type metadata after #63813

This commit is contained in:
Arnold Schwaighofer
2023-02-25 13:25:51 -08:00
parent 43510bc1fd
commit f8f1e52059
2 changed files with 4 additions and 4 deletions

View File

@@ -5,9 +5,9 @@
import Builtin
// CHECK: @"$s4test1ACfD.ptrauth" = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1AC*)* @"$s4test1ACfD" to i8*), i32 0, i64 ptrtoint ({{.*}} @"$s4test1ACMf" to i64), i64 48063 }, section "llvm.ptrauth", align 8
// CHECK: @"$s4test1ACfD.ptrauth" = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1AC*)* @"$s4test1ACfD" to i8*), i32 0, i64 ptrtoint ({{.*}} @"$s4test1ACMf", i32 0, i32 1) to i64), i64 48063 }, section "llvm.ptrauth", align 8
// CHECK: @A_foo.ptrauth = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1AC*)* @A_foo to i8*), i32 0, i64 ptrtoint ({{.*}} getelementptr inbounds ({{.*}} @"$s4test1ACMf", i32 0, i32 {{.*}}) to i64), i64 23008 }, section "llvm.ptrauth", align 8
// CHECK: @"$s4test1BCfD.ptrauth" = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1BC*)* @"$s4test1BCfD" to i8*), i32 0, i64 ptrtoint ({{.*}} @"$s4test1BCMf" to i64), i64 48063 }, section "llvm.ptrauth", align 8
// CHECK: @"$s4test1BCfD.ptrauth" = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1BC*)* @"$s4test1BCfD" to i8*), i32 0, i64 ptrtoint ({{.*}} @"$s4test1BCMf", i32 0, i32 1) to i64), i64 48063 }, section "llvm.ptrauth", align 8
// CHECK: @B_foo.ptrauth = private constant { i8*, i32, i64, i64 } { i8* bitcast (void (%T4test1BC*)* @B_foo to i8*), i32 0, i64 ptrtoint ({{.*}} getelementptr inbounds ({{.*}} @"$s4test1BCMf", i32 0, i32 {{.*}}) to i64), i64 23008 }, section "llvm.ptrauth", align 8
// CHECK: @"$s4test1GCMn" =

View File

@@ -9,7 +9,7 @@ bb0:
// CHECK: @"$sSo9WidgetRefaMn.ptrauth" =
// CHECK-SAME: @"$sSo9WidgetRefaMn"
// CHECK-SAME: @"$sSo9WidgetRefaMf", i32 0, i32 2
// CHECK-SAME: @"$sSo9WidgetRefaMf", i32 0, i32 3
// CHECK-SAME: i64 44678
// CHECK-SAME: section "llvm.ptrauth"
// CHECK: @"$sSo9WidgetRefaMf" = linkonce_odr hidden constant
@@ -18,7 +18,7 @@ bb0:
// CHECK: @"$sSo7IntPairVMn.ptrauth" =
// CHECK-SAME: @"$sSo7IntPairVMn"
// CHECK-SAME: @"$sSo7IntPairVMf", i32 0, i32 2
// CHECK-SAME: @"$sSo7IntPairVMf", i32 0, i32 3
// CHECK-SAME: i64 44678
// CHECK-SAME: section "llvm.ptrauth"
// CHECK: @"$sSo7IntPairVMf" = linkonce_odr hidden constant