Fix filecheck for Objective-C targets

Merge-request: KT-MR-6854
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2022-08-15 15:11:52 +00:00
committed by Space
parent ab3d3edb2b
commit f4c5f5d8eb
2 changed files with 4 additions and 4 deletions
@@ -6232,8 +6232,8 @@ fileCheckTest("filecheck_kt49847_generic_receiver") {
fileCheckTest("filecheck_kt53261_inline_unbox") {
annotatedSource = project.file('filecheck/kt53261/kt53261_inline_unbox.kt')
enabled = project.globalTestArgs.contains('-opt')
if (target.architecture == Architecture.ARM64) {
checkPrefix = "CHECK-ARM64"
if (isAppleTarget(project)) {
checkPrefix = "CHECK-APPLE"
}
}
@@ -30,5 +30,5 @@ fun main(arr: Array<String>) {
// CHECK-NOT: {{call|invoke}} <4 x float> @"kfun:kotlin.native#<Vector128-unbox>
// CHECK-NOT: {{call|invoke}} %struct.ObjHeader* @"kfun:kotlin#<Result-unbox>
// On ARM64, generated functions IntToNSNumber and UIntToNSNumber may contain non-converted invocations of unbox functions.
// CHECK-ARM64: IntToNSNumber
// On APPLE targets, generated functions <T>ToNSNumber may contain non-converted invocations of unbox functions.
// CHECK-APPLE: {{IntToNSNumber|LongToNSNumber|ByteToNSNumber|ShortToNSNumber|FloatToNSNumber|DoubleToNSNumber}}