From 6619edbbac07832f1b5b584d4b5ea5af28968e28 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Mon, 10 Jul 2023 13:50:25 +0200 Subject: [PATCH] [K/N] Fix redundant sp removal tests --- .../tests/filecheck/redundant_safepoints.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kotlin-native/backend.native/tests/filecheck/redundant_safepoints.kt b/kotlin-native/backend.native/tests/filecheck/redundant_safepoints.kt index 4354a7cc5fa..ee102085597 100644 --- a/kotlin-native/backend.native/tests/filecheck/redundant_safepoints.kt +++ b/kotlin-native/backend.native/tests/filecheck/redundant_safepoints.kt @@ -16,20 +16,20 @@ fun g() = f() // CHECK-LABEL: define %struct.ObjHeader* @"kfun:#h(kotlin.Boolean){}kotlin.Any" @Retain fun h(cond: Boolean): Any { - // CHECK: _ZN6kotlin2mm8internal20gSuspensionRequestedE + // CHECK: _ZN12_GLOBAL__N_115safePointActionE // CHECK-SMALLBINARY: {{call .*Kotlin_mm_safePointFunctionPrologue}} - // CHECK-NOT: _ZN6kotlin2mm8internal20gSuspensionRequestedE + // CHECK-NOT: _ZN12_GLOBAL__N_115safePointActionE // CHECK-NOT: {{call .*Kotlin_mm_safePointFunctionPrologue}} // CHECK: br // CHECK-SMALLBINARY: br if (cond) { - // CHECK-NOT: _ZN6kotlin2mm8internal20gSuspensionRequestedE + // CHECK-NOT: _ZN12_GLOBAL__N_115safePointActionE // CHECK-NOT: {{call .*Kotlin_mm_safePointFunctionPrologue}} // CHECK: br // CHECK-SMALLBINARY: br return listOf(C(), C()) } else { - // CHECK-NOT: _ZN6kotlin2mm8internal20gSuspensionRequestedE + // CHECK-NOT: _ZN12_GLOBAL__N_115safePointActionE // CHECK-NOT: {{call .*Kotlin_mm_safePointFunctionPrologue}} return listOf(C(), C(), C()) } @@ -39,11 +39,11 @@ fun h(cond: Boolean): Any { // CHECK-LABEL: define void @"kfun:#main(){}"() @Retain fun main() { - // CHECK: _ZN6kotlin2mm8internal20gSuspensionRequestedE + // CHECK: _ZN12_GLOBAL__N_115safePointActionE // CHECK-SMALLBINARY: {{call .*Kotlin_mm_safePointFunctionPrologue}} - // CHECK-NOT: _ZN6kotlin2mm8internal20gSuspensionRequestedE + // CHECK-NOT: _ZN12_GLOBAL__N_115safePointActionE // CHECK-NOT: {{call .*Kotlin_mm_safePointFunctionPrologue}} println(g()) println(h(true)) // CHECK: } -} \ No newline at end of file +}