Skip to content

test: adjust test for ce6ae0b2a26b1ec2f770b2b9474cc4486d60c586 #68552

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
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions test/IRGen/c_globals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public func testCaptureGlobal() {

// CHECK-x86_64-SYSV-DAG: attributes [[CLANG_FUNC_ATTR]] = { noinline nounwind {{.*}}"frame-pointer"="all"{{.*}}
// CHECK-x86_64-SYSV-DAG: attributes [[SWIFT_FUNC_ATTR]] = { {{.*}}"frame-pointer"="all" {{.*}}"target-cpu"
// CHECK-x86_64-WIN-DAG: attributes [[CLANG_FUNC_ATTR]] = { noinline nounwind {{.*}}"frame-pointer"="none"{{.*}}
// CHECK-x86_64-WIN-DAG: attributes [[SWIFT_FUNC_ATTR]] = { {{.*}}"frame-pointer"="none" {{.*}}"target-cpu"
// CHECK-x86_64-WIN-DAG: attributes [[CLANG_FUNC_ATTR]] = { noinline nounwind {{.*}}
// CHECK-x86_64-WIN-DAG: attributes [[SWIFT_FUNC_ATTR]] = { {{.*}}"target-cpu"

// CHECK-armv7-SYSV-DAG: attributes [[CLANG_FUNC_ATTR]] = { noinline nounwind {{.*}}"frame-pointer"="all"{{.*}}
// CHECK-armv7-SYSV-DAG: attributes [[SWIFT_FUNC_ATTR]] = { {{.*}}"frame-pointer"="all" {{.*}}"target-cpu"
Expand Down
8 changes: 4 additions & 4 deletions test/IRGen/framepointer.sil
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ entry(%i : $Int32):
// CHECK: }

// CHECK-SYSV: attributes [[ATTR]] = { {{.*}}"frame-pointer"="all"
// CHECK-WIN: attributes [[ATTR]] = { {{.*}}"frame-pointer"="none"
// CHECK-WIN: attributes [[ATTR]] = { {{.*}}

// CHECK-ALL: define{{.*}} swiftcc i32 @leaf_function_no_frame_pointer(i32 %0) [[ATTR:#.*]] {
// CHECK-ALL: entry:
Expand All @@ -48,7 +48,7 @@ entry(%i : $Int32):
// CHECK-ALL: }

// CHECK-SYSV-ALL: attributes [[ATTR]] = {{{.*}}"frame-pointer"="all"
// CHECK-WIN-ALL: attributes [[ATTR]] = {{{.*}}"frame-pointer"="none"
// CHECK-WIN-ALL: attributes [[ATTR]] = {{{.*}}

// LEAF: define{{.*}} swiftcc i32 @leaf_function_no_frame_pointer(i32 %0) [[ATTR:#.*]] {
// LEAF: entry:
Expand All @@ -62,7 +62,7 @@ entry(%i : $Int32):
// LEAF: }

// LEAF-SYSV: attributes [[ATTR]] = {{{.*}}"frame-pointer"="non-leaf"
// LEAF-WIN: attributes [[ATTR]] = {{{.*}}"frame-pointer"="none"
// LEAF-WIN: attributes [[ATTR]] = {{{.*}}

// NOFP: define{{.*}} swiftcc i32 @leaf_function_no_frame_pointer(i32 %0) [[ATTR:#.*]] {
// NOFP: entry:
Expand All @@ -76,7 +76,7 @@ entry(%i : $Int32):
// NOFP: }

// The clang frontend's -fomit-frame-pointer no longer leads to frame-pointer=none
// attributes [[ATTR]] = {{{.*}}"frame-pointer"="none"
// attributes [[ATTR]] = {{{.*}}

// Silence other os-archs.
// CHECKASM: {{.*}}
Expand Down